cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Xylene
Level 3

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?
Labels (1)
0 Kudos

(1) Reply
Xylene
Level 3

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."
0 Kudos