Capture the version you are upgrading from - Advanced Installer Community
gallyjh
Posts: 27
Joined: Tue Dec 20, 2011 5:01 pm

Capture the version you are upgrading from

Hi,

Is there a way to capture the version of the software you are upgrading from? I'd like to pass this as a variable to a custom action script.

Thanks!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Capture the version you are upgrading from

Hi,

All the packages created with Advanced Installer contains, by default, a registry value that stores the version of that package, which is written to the following path:

Code: Select all

HKLM\Software\[Manufacturer]\[ProductName]\Version
So, if your previous packages were created with Advanced Installer, you can go in the Search page and create a registry search for that value.

Another approach is described below:
- go in the Search page and create a new "Product Version (identify by Upgrade Code)" extended search (i.e. PROD_VERSION)
- in the "Upgrade Code" field write the Upgrade Code of your product and in the "Minimum" field write the "0.1" value

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

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”