This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Try this code
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 24, 2008
09:05 PM
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.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 25, 2008
11:23 PM
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 26, 2008
08:17 AM
LaunchAPPandWait("msiexec.exe","/uninstall {PRODUCT GUID}",WAIT);
this code supposed to work.
Good luck Yaniv.
this code supposed to work.
Good luck Yaniv.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 26, 2008
03:53 PM
thank you both. works now 🙂
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 27, 2008
06:33 PM
yanivna, Could you elaborate on that code, what it is and where it should be?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 27, 2008
06:43 PM
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.