How to execute javaws during the install - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

akaine
Posts: 2
Joined: Fri Aug 20, 2010 6:43 pm

How to execute javaws during the install

Hello

After a hell of a fight with InstallAnywhere (the worst installer I've ever seen, I might say) I returned to Advanced Installer trying to figure out how to achieve the requirements IA couldn't offer.

What I need is to run a JNLP installer which of course won't run without a proper JRE version installed. So here it goes:

1. My main problem is with the JRE installer. So if I embed it using Prerequisites will the installer execute it?
2. How to make this and only this JRE installer ask for admin privileges, the rest of the installer should be executed as logged in profile, whatever it is, because if not - the Java application will be installed for the admin and not the user who ran the setup.
3. How to be more specific about JRE version? For ex. the prerequisite to run my JNLP installer is 1.6.0_20, still in Products -> Edit Prerequisite -> Install Conditions -> Searches -> Edit the min version field does not permit "_" symbols so I'm limited to 1.6.

Also I had a less pressing question:
Could I run a JNLP installer without using batch script as a custom action? The current execution line is:
javaws -silent -Xnosplash -shortcut -association -codebase file:/C:/installation_temp -import MyJNLPinstaller.jnlp
where installation_temp is my main installation dir.

I've already spent almost two weeks trying to solve these issues with almost no results but my hopes are still alive :roll:

Thanks in advance and Regards
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to execute javaws during the install

Hello,
1. My main problem is with the JRE installer. So if I embed it using Prerequisites will the installer execute it?
2. How to make this and only this JRE installer ask for admin privileges, the rest of the installer should be executed as logged in profile, whatever it is, because if not - the Java application will be installed for the admin and not the user who ran the setup.
The JRE installer will run without problems. From what I know, the JRE installer is an executable. I am sure it will ask for administrator privileges all by itself due to its manifest requesting elevation. This means no configuration needs to be done, the prerequisite will be launched with admin privileges, the rest of the install will be run with invoker privileges.
3. How to be more specific about JRE version? For ex. the prerequisite to run my JNLP installer is 1.6.0_20, still in Products -> Edit Prerequisite -> Install Conditions -> Searches -> Edit the min version field does not permit "_" symbols so I'm limited to 1.6.
The reason we do not allow the '_' character inside the version field is because the character is not a valid version character. Perhaps you can find some other criteria by which to detect this specific version of JRE? If not, we also allow custom executables to do searches, just use "Search done by a custom executable" as the search criteria. You can then use your own custom exe to do the search.
Also I had a less pressing question:
Could I run a JNLP installer without using batch script as a custom action? The current execution line is:
javaws -silent -Xnosplash -shortcut -association -codebase file:/C:/installation_temp -import MyJNLPinstaller.jnlp
where installation_temp is my main installation dir.
I dont see why not. You can use the Launch File or Open URL custom action to launch your jnlp installer.

I hope this helps.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”