danc81
Posts: 18
Joined: Tue Oct 09, 2007 8:46 am

VerifyRemoveDlg from Add/Remove programs

I have a custom option on the VerifyRemoveDlg dialog which allows an installed program to run before the uninstallation. When I select uninstall, either from the Add/Remove programs or the shortcut in the start menu I do not see the dialog.

How can I present the dialog on uninstall?

Where is the latest event I can call the custom action from before the application is removed?

Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that Windows Installer performs a silent uninstallation when using the "Remove" button in "Add or Remove Programs", therefore you cannot show a Windows Installer dialog (in your case "VerifyRemoveDlg").

A simple solution is to go to the "Product Details" page and check the "Disable Remove" option. This way, the user will be able to select only the "Change" button and the MSI will enter into Maintenance mode (full UI).

Since the Maintenance mode shows all the uninstall dialogs, it will also show the "VerifyReadyDlg" dialog.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
danc81
Posts: 18
Joined: Tue Oct 09, 2007 8:46 am

Thanks,

That worked perfectly.

Just one question. I have a checkbox on the final screen of the first time install but I do not want to show it at the end of the maintenance section but it appears on both. How can I hide it for maintenance?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

In order to do this you can use Control Conditions in the "Dialogs" page. Here are the steps:
- select the checkbox in the "Dialogs" page
- select the "Control Conditions" tab in the "Control" section
- create these conditions:

Code: Select all

NOT Installed                Show
Installed                    Hide
You can read more about Control Conditions here:
http://www.advancedinstaller.com/user-g ... conditions

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
danc81
Posts: 18
Joined: Tue Oct 09, 2007 8:46 am

Perfect! Thanks.
lesliehedzg
Posts: 13
Joined: Tue Jul 24, 2018 10:05 pm

Re:

Perfect , but i dont understand
Where do I add uninstall dialogs? Where do I specify that two of my dialogs are uninstall?

best regards,
Leslie
Eusebiu
Posts: 4933
Joined: Wed Nov 14, 2012 2:04 pm

Re: VerifyRemoveDlg from Add/Remove programs

Hello Leslie,

Please read my reply from the "Combobox: Text vs. values" thread.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”