Uninstalling old versions of created app - Advanced Installer Community
carldickens
Posts: 1
Joined: Fri Sep 18, 2020 8:14 pm

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
Carl
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Uninstalling old versions of created app

Hello Carl and welcome to our forums,

Yes, it is possible for your setup to automatically uninstall the older version and then install the newer one.

This is what we call a major upgrade. In order to achieve this, all you need to do is:

- in your project, increase the "Version" field from "Product Details" page (e.g. from 1.0.0 to 1.0.1)

- now, when chaning views (or when trying to build the project), you will be asked to generate a new product code. When doing so, please select "Generate New"

Hope this helps!

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

Return to “Common Problems”