dwhaley666
Posts: 7
Joined: Wed Mar 04, 2009 3:49 pm

Auto Uninstall

Is there a way to automatically perform an uninstall of a previous version if it is required?
cyb
Posts: 43
Joined: Wed Apr 15, 2009 1:06 pm

Re: Auto Uninstall

Hi,

Actually, there are three ways to do this:
1) You can add your old MSI package in the "Upgrades" page. This way, Windows Installer will search for the old MSI Upgrade Code in order to uninstall the previous installation.
2) You can use the "Automatically upgrade older product versions" option.
3) You can add a custom action in the InstallUISequence->Begin that allows you to run a msiexec.exe command line. The command line that you can enter is:

Code: Select all

msiexe.exe /x <ProductCode> 
where where "<ProductCode>" is the product code of your old package. Eventually, you can add the "/qb" parameter so that the user will not be prompted in any way.

Best regards,
cyb
Cosmin Budrica
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”