How to get type of uninstallation - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

How to get type of uninstallation

Hi!

I am having AI-6.4.1.
I know uninstallation can be done in two ways:

1. From uninstall shortcut in start menu programs.
2. While installing a updated version ,older version will get uninstalled.

I want to display a message, only if user has chosen uninstllation from shortcut.

How could i know that which type of uninstallation is currently being done?

Regards,
Vicky
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to get type of uninstallation

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:

Code: Select all

 MY_PROPERTY = “1” 
-- 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
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”