Cleanup on install - 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!

alco
Posts: 80
Joined: Thu Nov 18, 2010 5:02 pm

Cleanup on install

I know there's a way to prompt to cleanup settings on uninstall, but is there a way that the same prompt can be done on install? The reason is we want to give the user option to clean up settings made by previous installer (which do not have the cleanup prompt on uninstall). This will ensure that the prompt is shown on upgrade.

I have tried setting "Remove On" to "Component install and uninstall" on Remove tab, but this does not prompt on install, it only prompts on uninstall. If not possible via the remove tab, then perhaps there's a way to do this via custom action where a message box is shown and a property will be set depending on answer. The property can then be used to trigger another custom action that does the clean up (registry, files, etc)
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Cleanup on install

Hello,

You can follow this article to accomplish this functionality.
Here is another article that can help you display a message box. You can use the message box result property to condition the execution of the custom behavior from the previous article.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”