mikejwatts
Posts: 5
Joined: Fri Apr 03, 2009 2:17 pm

Conditional Prerequisite

I have a prerequisite program ( e.g. which is currently at version 3.0 ) which must be installed if a searched file does not exist or is below a certain version ( say 1.0 ) but is _optionally_ installed if the file is above the minimum ( 1.0 ) but below another level ( say 2.0 ).

I tried having two 'products' on the Prerequisites page where the first looks for the file and minimum version and has Force installation of this prerequisite checked and the second which looks for the intermediate ( 2.0 in the example ) version and does not have 'Force...' checked but this just tries to install the program twice.

Any pointers as to how this can be achieved?
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Conditional Prerequisite

Hi,

This scenario is a little bit more complicated and from what I can see cannot be implemented using our standard searches. The solution
is to create an EXE that performs the searches. In case of the EXE finds a suitable version of the prerequisite, the returned value must be 0. Any other value will be interpreted as failure.

Here are more details.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”