Uninstalling old versions of created app - Advanced Installer Community
sarainader
Posts: 2
Joined: Tue Jan 05, 2021 8:26 am

Uninstalling old versions of created app

Hey Team,
So I have built an installer for an application and we make changes from time to time. When we attempt to reinstall the application on a PC that has a previous install, it forces us to stop the installation and manually uninstall the old version and then restart the installer.
Is there a way to make this automatically uninstall and then install the new version?
Is there a better way to handle this issue?

All machines are windows 10 pro with current level of updates.

Any help is appreciated
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Uninstalling old versions of created app

Hello and welcome to our forums,

Yes, there is a way for your setup to automatically uninstall the older version.

To do so, please:

- go to "Product Details" page and increase the version of your product (e.g. from 1.0.0 to 1.0.1)

- when changing views/building, you will be asked if you want to generate a new ProductCode. Here, please select "Generate New".

Now your product should automatically uninstall the older version.

For more information about this, please have a look over the following article:

Product Identification (ProductCode and UpgradeCode)
Also, it is important to note that two products with the same ProductCode can not be installed on the same computer. Windows Installer will prevent this with an error reading:

Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Programs and Features in the Control Panel.
Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”