Not upgrading any previous 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!

canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Not upgrading any previous version

Hello everyone.

The new version of our installer should not upgrade an existing installation.

Is setting "Min. Version" in "Upgrades" to "[|ProductVersion]" the correct way to go about this?

What happens when the user picks an installation folder of a previous installation? Does AI/Windows Installer silently/non silently perfom an uninstall, with the properties REMOVE="ALL" and "NOT UPGRADINGPRODUCTCODE"?

With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Not upgrading any previous version

Hi,
The new version of our installer should not upgrade an existing installation.
In order to do this you can follow these steps:
- go to the Upgrades page
- check the "Customize Advanced Installer upgrade rules" option
- edit both rules by using the "Edit" button or by double-clicking them
- in the "Edit Upgrade" dialog go to the Upgrade Action tab
- select the "Detect only, placing the results in property" option
What happens when the user picks an installation folder of a previous installation?
If the packages are configured for auto-upgrading, the old installation is removed and the new package is installed. However, if you customized the upgrade rules in order to keep the old installation, then the new files will be installed over the old ones. This can be avoided by using a custom action which checks the property set by the upgrade rule. If an older version is detected, the package should run a custom action which doesn't allow the user to continue.
Does AI/Windows Installer silently/non silently perfom an uninstall, with the properties REMOVE="ALL" and "NOT UPGRADINGPRODUCTCODE"?
A complete uninstall of the old product is performed when the packages are configured for auto-upgrading. Also, when the new package detects older versions, the OLDPRODUCTS property is set to the Product Codes of the old versions.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Not upgrading any previous version

Hello Cosmin,
cosmin wrote:If the packages are configured for auto-upgrading, the old installation is removed and the new package is installed. However, if you customized the upgrade rules in order to keep the old installation, then the new files will be installed over the old ones. This can be avoided by using a custom action which checks the property set by the upgrade rule. If an older version is detected, the package should run a custom action which doesn't allow the user to continue.
for this I need to know the standard action before or after which it is known wether it is an upgrade or not, right?

Which standard action is it? Is there only one or are there different standard actions depending on "Installation Type"?

With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Not upgrading any previous version

Hi Clemens,

The standard action you are referring to is "InstallExecuteSequence" -> "RemoveExistingProducts". Any custom action scheduled before this standard action will be executed before the upgrade is performed.

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

Return to “Common Problems”