ahmetildirim
Posts: 2
Joined: Fri Feb 16, 2018 9:01 am

How to seperate upgrade and first installation

Hi,
We are evaluating Advanced Installer for our product. It almost matched every one of our needs for the first installation phase with no problem. Before I ask my question, let me summarize what happens in the first installation phase.
  • 1. Collect configuration information which required to run application
    2. Collect Sql Server connection information,
    3. Installation
    4. Apply configuration information to application (Finish Dialogs Stage)
When we upgrade version, Advanced Installer removes previous version and starts installing the new version from scratch. But we want skip 1. and 2. steps from first installation phase while upgrading. Because we don't need them even if it is a major upgrade.

So, how can we skip certain actions in upgrade mode?
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How to seperate upgrade and first installation

Hello,

A major upgrade could be detected using "OLDPRODUCT" property. This contains a list with the Product Codes of the older versions of your installation package. This property is set only in a package which upgrades another package.

You could use the following condition :

Code: Select all

NOT OLDPRODUCTS
In order to condition the first two action you've mentioned. This will ensure the actions will only be executed if the installation is not a major upgrade.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”