Run install only if above a certain Product version - 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!

cfs80
Posts: 27
Joined: Tue Mar 30, 2010 9:10 am

Run install only if above a certain Product version

Hi

Can somebody help me with a fairly detailed instruction on how to setup my application to install only when it is above a certain Product version. Example: If I try to install a new product version 1.4.8 and the previously product version installed is 1.4.6 and above the installer should run and install the new version. If it had been product version 1.4.5 and below installed previously, the new product version 1.4.8 should not be installed. And if there is no previous installment of the product the installer should always run and install the new product version.
Thanks for all help!

Brgds
Christian
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Run install only if above a certain Product version

Hi Christian,

To accomplish this you can get the products codes of the older versions. Then, in the upgrading package, you can add a launch condition containing the OLDPRODUCTS property that will stop the installation according to your needs.

Another way to accomplish this is through searches. Here is the thread that has the steps.

Both cases require the launch condition. Here are some operators to help you with it:
>< - TRUE if left string contains the right string.
~>< - TRUE if left string contains the right string. The comparison is case insensitive.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cfs80
Posts: 27
Joined: Tue Mar 30, 2010 9:10 am

Re: Run install only if above a certain Product version

Hi Mihai,

Thanks for your quick reply. I will try your solution.

Brgds
Christian

Return to “Common Problems”