yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

Java version for prerequisites

I have a java prerequisites in my installer.

It is set under software prerequisites and the install condition check for a registry value HKLM\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_12\

This will work if the user version is exactly 1.6.0_12 but not and other version, such as 1.6.0_10 or 1.6.0_18.

Anyway to set the Java requirement in a more generic version with a minimum and maximum version without specifying all versions out there?

Thanks

-Yishai
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Java version for prerequisites

Hello,

It would probably be best if you did a file search with "File Version" as the criteria. You can search for:

Code: Select all

[ProgramFilesFolder]java.exe
and set the Search Depth to 3.
Set the minimum and maximum versions as required. Leave maximum blank if appropriate.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

Re: Java version for prerequisites

Ho aboutthis registry value?

HKLM\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion

Should it work?

-Yishai
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Java version for prerequisites

Hello,

That would also work. Simply create a search with "Registry Value" as the criteria. Specify the range of versions in the Minimum and Maximum fields (both fields are optional).

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

Return to “Common Problems”