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
- :
- Re: How do I detect if my MSI is being uninstalled due to an upgrade?
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 11, 2014
12:54 AM
How do I detect if my MSI is being uninstalled due to an upgrade?
Hello everyone.
I need to identify when my MSI package is being uninstalled because a new product is being installed via the upgrade code. I need to do this in either a basic MSI or an InstallScript MSI.
To be clear, I don't want to know if my MSI package is going to perform an upgrade or not (which I believe would be accomplished via the VerProductCompareVersions() function). I want to work on the other side of things: The package being removed as a result of a Major upgrade.
I don't need the solution to be in the form of an InstallScript function necessarily; I just need a method of detecting this.
Thank you.
I need to identify when my MSI package is being uninstalled because a new product is being installed via the upgrade code. I need to do this in either a basic MSI or an InstallScript MSI.
To be clear, I don't want to know if my MSI package is going to perform an upgrade or not (which I believe would be accomplished via the VerProductCompareVersions() function). I want to work on the other side of things: The package being removed as a result of a Major upgrade.
I don't need the solution to be in the form of an InstallScript function necessarily; I just need a method of detecting this.
Thank you.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 13, 2014
03:33 PM
Please refer to UPGRADINGPRODUCTCODE property.