Uninstall UI - 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!

Nuno147
Posts: 3
Joined: Sat Oct 30, 2010 7:46 pm

Uninstall UI

Hi,
I am evaluating Advanced Installer for an out-source project.

One of the requierments for their project is to popup a dialog box when performing uninstall and with a Yes/No buttons. If Yes , an executable will need to run, if not, nothing happens and the uninstall continue. On complete silent uninstall , the default choice will be choosed (yes).

I have tried to figure out how can I do it and it seems to be very complex. First of all I have notice that when chooing uninstall on an MSI or via Program and features, the Advance Installer MSIs are using basic UI with no dialogs.

Can you please suggest how to solve this issue using advance installer ?

Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstall UI

Hello,
Can you please suggest how to solve this issue using advance installer ?
To achieve this you should use two custom actions. The first one should be a "Message Box" custom action placed after the Begin standard action from InstallExecuteSequence in the Custom Actions page, with an Execution Condition set to:

Code: Select all

REMOVE="ALL"
This custom action should set a property to a value when the "Yes" button is pressed.
You can use this property as an Execution Condition for you second "Launch File or Open URL" custom action, placed right after the first one. This way the second custom action will trigger and launch your EXE file only when the "Yes" button is pressed.
First of all I have notice that when chooing uninstall on an MSI or via Program and features, the Advance Installer MSIs are using basic UI with no dialogs.
This is a Windows Installer standard when choosing the uninstall option, but if you need to, you can customize your package to show only the Change option from the Product Details page(check "Disable Repair" and "Disable Remove").
This way the user will be able to uninstall the application only from the maintenance mode, by pressing the Change button in Control Panel -> Programs and Features.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Nuno147
Posts: 3
Joined: Sat Oct 30, 2010 7:46 pm

Re: Uninstall UI

Many thanks for your fast reply !

Should I worry about non-interactive mode ? If the uninstall operation is done via SMS/Tivoli, the message box call will cause the msiexec to hang ? or your built-in message box costum action take care of that ? If not, what should I do to avoid the message box from been popup when on non-inteactive state ?

Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstall UI

Hello,

To make sure your installation won't hang and wait for user interaction you can set its execution property to one of the "Asynchronous execution..." properties you find more suitable.
In case you have a silent installation you can condition the execution of the message box custom action using the UILevel Property.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”