Prerequisites JRE version incorrect - 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!

JGreg
Posts: 5
Joined: Fri Nov 23, 2007 2:23 pm

Prerequisites JRE version incorrect

I've created a software prerequisite of the Java Runtime Environment for my installer. I've set it to open up a browser when the JRE is not found during installation and it works fine. My only problem is the display message in the installer. The message states version 1.0 is missing which is completely wrong. I've put the ver min and ver max to be 1.5 / 1.6 and also tried 5 / 6 but I always get the same message.

How can I control that message in my installer?
Advanced Installer Version : 6.1.1

Thanks,
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This is done in the "Edit Search" dialog in which you set the detection criteria for the prerequisite. In order to set this you can follow the steps:
- add the prerequisite
- in the "New Prerequisite" dialog go to the "Install Conditions" tab
- double-click the search in the "Searches" section
- modify the "Minimum" field in the "Required Versions" section

You can read more about this here:
http://www.advancedinstaller.com/user-g ... earch.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JGreg
Posts: 5
Joined: Fri Nov 23, 2007 2:23 pm

Brilliant!

Thanks very much.
kosaddicted
Posts: 2
Joined: Sat Sep 20, 2008 2:49 pm

Re: Prerequisites JRE version incorrect

Hi there,
I've followed all the steps listed in this topic to add a prerequisite on JDK version, my problem is that condition set on MAX VERSION is never set.
I've set ver max: 1.5 in PROPERTIES tab, then tried to edit criteria in INSTALL CONDITION TAB, but when i press the TEST.. button I can see that ver max value has not been set and test is passed even if version found is 1.6.
I tried also to set ver min = ver max = 1.5, in this case only restriction on ver min value is correctly set.
kosaddicted
Posts: 2
Joined: Sat Sep 20, 2008 2:49 pm

Re: Prerequisites JRE version incorrect

I've found a workaround for my problem, instead of

CRITERIA = Registry Subkey Enumeration and SEARCH STRING = HKLM\SOFTWARE\JavaSoft\Java Development Kit

I'm using

CRITERIA = Registry Key Exists and SEARCH STRING = HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.5

It's still not clear to me why I can't get the VER MAX restriction to work, but that's probably because I am a newbie ;)

Massimo
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Prerequisites JRE version incorrect

Hi Massimo,

Please note that the version fields in the Properties tab of the "New Prerequisite" dialog will be shown to the user in the prerequisites wizard and does not affect the prerequisite detection or installation. A maximum version can be set when defining the detection criteria of the prerequisite in the Install Conditions tab.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”