"Upgrading" the same 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!

ElectronShepherd
Posts: 29
Joined: Thu Jun 30, 2011 11:51 am

"Upgrading" the same version

We have two editions of our product, with different features. We want someone to be able to install one, and then install the other. These two products are mutually exlusive (you should only have one installed at any one time). They have the same upgrade code and different product codes, and the same version.

Both projects are configured to automatically upgrade older product versions.

If I don't chose to customise the upgrade rules, if I install both editions, both are installed, and both appear in Add/Remove Programs (the second install should uninstall the first).

If I customise the upgrade rules, and configure the upgrade action to be "Find and remove" for older and newer versions, when I run the second install, the installation stops with the message "A more recent version of (product name) is already installed", even though an equal version is installed.

How can I configure AI to remove a product with the same upgrade code and same version as the one being installed?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: "Upgrading" the same version

Hi,

The usual approach is to use a master package which contains both editions, but installs only one of them based on UI options. Our Client/Server application wizard uses this method:
- it creates a feature for each edition (Client or Server)
- each edition is configured around its feature
- during install the user can select which edition he wants

If you really want to use different products, you need to use two separate projects with separate Upgrade Codes. Otherwise your two products will conflict and most likely have an unwanted behavior. In this case each product can have a custom upgrade rule which removes the other product, no matter what version it has.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”