UninstallPreviousVersions - Advanced Installer Community
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

UninstallPreviousVersions

Hello,

We have uninstallPreviousVersions Custom action in our adi setup. We want to know, when does the old software gets uninstall and when does it get replaced? Is it related to the product code, product version, product name, build date time, etc?

Swati
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: UninstallPreviousVersions

Hi Swati,

A set of different versions of your application must have the same UpgradeCode. The UpgradeCode is a GUID representing a related set of products. This enables newer versions of your application to search and upgrade previous versions installed on the same computer.
Please note Windows Installer will upgrade the old installed version if the new one has a different ProductCode and a higher ProductVersion. Of course, a set of different versions of your application will have the same UpgradeCode. For details, please take a look on the Product Identification (ProductCode and UpgradeCode) article.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”