Testing to see if an application of the right version is ins - 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!

SkiTrak1
Posts: 5
Joined: Thu Oct 14, 2010 4:23 pm

Testing to see if an application of the right version is ins

I need to see if a application is allread installed and is the right version before I proceed. I was going to use a prerequiset but I do not want to install the application since it doesnot come from my company. It is a addon for another companies product. So it looked like the right thing was a launch condition based on a custom property. So I set up a custom property to get the version of the application if it is installed. The problem is I cannot seem to test it to see if it is greater then 5.0.0.0 and less then 5.999.999.999. I read in the doc that you have to do something special to compare a property with a version but the doc it linked me to for the explanation on how to do it did not seem to talk avbout how to do it.

I am going about this the wrong way?

If not how would I test the version?

Thanks for your help!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Testing to see if an application of the right version is ins

Hi,

An easier method would be to create a "New Extended Search", in the Search page. Set its criteria to "Product Version (identfy by ProductCode/UpgradeCode )".
Fill in the corespondent GUID and test the search.

After this you can use the name of the search in the custom launch condition created previously.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SkiTrak1
Posts: 5
Joined: Thu Oct 14, 2010 4:23 pm

Re: Testing to see if an application of the right version is ins

I want to support all versions of this other project between 5.0.0.0 to 5.999.999.999. Can I be sure that the product guid would be the same on all version 5 but not version 6? I do not have any control of the other product because I am a add on vendor to them.
SkiTrak1
Posts: 5
Joined: Thu Oct 14, 2010 4:23 pm

Re: Testing to see if an application of the right version is ins

I am having the same problem using product code. If I set the property yto be Minimum 4.0.0.0 and Maximum 4.999.999.999 the property returns True even if the version is 5.0.0.969. It also returnsTrue if the Minimum is 5.0.0.0 and Maximum is 5.999.999.999. My Launch condition is [Property Name] = True in case that is not the right test.
SkiTrak1
Posts: 5
Joined: Thu Oct 14, 2010 4:23 pm

Re: Testing to see if an application of the right version is ins

Ok I got it to work. I used extended search properties to create a property to find the version of the product in the registry. The criteria was Registry Value containing a version. I set the Min to 5.0.0.0 and the max to 5.999.999.9999

I then created a launch condition checking for the existence of the property.

Return to “Common Problems”