Custom Dialog for Uninstallation via Add / Remove Programs - 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!

janos.varadi
Posts: 11
Joined: Tue Jan 26, 2010 4:53 pm

Custom Dialog for Uninstallation via Add / Remove Programs

I have already found some answers for this question. Currently it is not possible to launch the custom dialog Maintenance when triggering the uninstall from the add /remove programs.

All products listed in add /remove programs are also listed in the registry HKL\Software\Microsft\Windows\Current vERSION\uNINSTALL

The uninstall path is stored for each product within the uninstallString. The advanced installer currently creates by default the following entry

msiexec.exe /x {PRODUCTCODE}.

If this entry is changed to msiexec.exe /i {PRODUCTCODE} the maintenance dialog would show up.

What is the best way to modify this registry key?

Kind regards,

János
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Custom Dialog for Uninstallation via Add / Remove Programs

Hello,

Try either through the Registry page, or using a custom action to launch the 'reg' command line utility to add the registry.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
neFAST
Posts: 13
Joined: Mon Jun 30, 2008 2:30 pm

Re: Custom Dialog for Uninstallation via Add / Remove Programs

I second this request:
When uninstalling, I would like to ask the user if he wants its settings file to be removed or kept.
How do I do that ?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Custom Dialog for Uninstallation via Add / Remove Programs

Hello,

You can create a custom dialog in which you can ask the user whether the installer should also remove the configurations file.
Then you can configure the Uninstall Cleanup to remove the file or not, depending on what the user selected on the dialog. In AI, simply right click the folder containing your file(s) and select Properties and go to the Remove tab. Condition the removal with the property used on your custom dialog to collect the user's choice.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”