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!

steanson
Posts: 2
Joined: Tue Jun 26, 2012 3:13 pm

reading registry productversion

Hi,
I have an exe that i need to run under a registry condition (it installs drivers).
the ProductVersion registry val is given like so '5.6.7.1' this depicts the major,minor and sub version of the product
I need to be able to figure out from the individual parts in order to know when to install.

What is the best way to go about this.
As a nube to advanced installer i'm flummoxed

Many thanks
Steve
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: reading registry productversion

Hello Steve and welcome to Advanced Installer forums,

Since you are new, I highly recommend you read our tutorials for a better understanding of how to use Advanced Installer to efficiently deploy your products.This will also help you better understand support team's suggestions now and in the future. The Simple and Professional tutorials are especially important. Also, if at any time you find any of Advanced Installer's GUI confusing, you can always press F1 and the corresponding help article will pop up.

To obtain what you need you can run the related exe using a "Launch attached file" custom action added to your installation package. Then you can launch the custom action using a new extended search as a condition.

Here're the steps to proceed:
- Go to "Search" page and add a new extended search (i.e. REGISTRY_VERSION). From "Extended Properties" right pane use "Registry value containing a version" search criteria and add your registry value path. Also, you can specify the minimum and/or maximum version necessary for the search to be successful.
- Go to "Custom Action" page and add a "Launch attached file" custom action with sequence which will run the related exe. The custom action can be scheduled after "Install Execution Stage -> Add Resources" standard action and should run as "Deferred with no impersonation". From "Execution Stage Condition" group check only "Install" option and in the "Condition" field add the following condition: REGISTRY_VERSION

Let us know if this helps, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
steanson
Posts: 2
Joined: Tue Jun 26, 2012 3:13 pm

Re: reading registry productversion

Hi,

thanks for the detailed response, very helpful!
I have gone through the tutorials, and understand the basics,
will the minimum and maximum account for a registry value in the format A.B.C.D or will it deal only with simple integers ?
If it can only deal with integers then it looks like I need a custom script?

thanks Steve
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: reading registry productversion

Hello Steve,

Yes, you can use the "A.B.C.D" format, where A,B,C and D are numbers, in the related fields.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”