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
- :
- Upgrade vs. Uninstall
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Aug 29, 2016
05:40 PM
Upgrade vs. Uninstall
Is there a way for a currently installed application to know that the the request to uinstall came from an UPGRADE and not from a user selecting to uninstall the application?
(1) Reply
Aug 31, 2016
11:09 AM
Xylene wrote:
Is there a way for a currently installed application to know that the the request to uinstall came from an UPGRADE and not from a user selecting to uninstall the application?
I found the answer to my question from The windows developer resources https://msdn.microsoft.com/en-us/library/windows/desktop/aa372380(v=vs.85).aspx
"The UPGRADINGPRODUCTCODE property is set by Windows Installer when an upgrade removes an application. The installer sets this property when it runs the RemoveExistingProducts action. This property is not set by removing an application using the Add or Remove Programs in Control Panel. An application determines whether it is being removed by an upgrade or the Add or Remove Programs by checking UPGRADINGPRODUCTCODE."