cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Markybob
Level 2

not being able to upgrade

whenver i release a new version, even though i have changed the upgrade code, the installer warns the user that it cannot continue since it's already installed and the user needs to uninstall it themselves first. how can i have the *installer* automatically remove the old version and then install the new version, so the user doesnt have to manually do it? this is very frustrating. any help is appreciated.
Labels (1)
0 Kudos
(5) Replies
Snoopstah
Level 7

You should not change the upgrade code, but rather change the product code to perform a major upgrade. The help article Major Upgrades should assist you.
0 Kudos
yanivna
Level 4

LaunchAPPandWait("msiexec.exe","/uninstall {PRODUCT GUID}",WAIT);

this code supposed to work.

Good luck Yaniv.
0 Kudos
Markybob
Level 2

thank you both. works now 🙂
0 Kudos
Alfetta159
Level 4

yanivna, Could you elaborate on that code, what it is and where it should be?
0 Kudos
Snoopstah
Level 7

That code would uninstall the product you specify in PRODUCT GUID. It is InstallScript so you put it at whichever point in your code you wish to uninstall the product. Generally this would be in OnResumeUIBefore or something like that. But for a major upgrade I recommend changing the product code and following the built in propert of IS_MAJOR_UPGRADE.
0 Kudos