Hi,
How could i know that which type of uninstallation is currently being done?
The UPGRADINGPRODUCTCODE property is set when the product is being uninstalled by un upgrade. So you can test this property, if it is empty the uninstall is not performed by un upgrade, otherwise it means an upgrade is taking place.
I want to display a message, only if user has chosen uninstllation from shortcut.
Here is what you can do:
-- you can declare a new property in the Install Parameters page, called for example MY_PROPERTY
-- in the Arguments field from the Edit Shortcuts Properties dialog you can set a property:
-- now you can create a
custom action that displays your message and set its Condition field like this:
Code: Select all
REMOVE = “ALL” AND MY_PROPERTY = “1”
This will make the message appear only when the user tries to perform an uninstall using the shortcut.
Regards,
Bogdan
FOLLOW US
Get the latest news in Application Packaging