cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Streamlet
Level 5

How to know if the uninstallation is invoked RemoveExistingProduct?

As the title.

If I use major upgrade, the installer willl remove the old product during an upgrade. In these case I want the user data to be kept.
When user uninstall the product manually, I want the user data to be deleted.

How can the uninstaller differentiate wher it is invoked by RemoveExistingProduct action, or by the end user?

I tried to pass a public property to the installer, but it does not pass it to the uninstaller of old version when execute RemoveExistingProduct action.

Thanks in advance.
Labels (1)
0 Kudos
(1) Reply
Streamlet
Level 5

This issue is solved. The property UPGRADINGPRODUCTCODE can tell the difference between uninstallation and major upgrade.
0 Kudos