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!

Bias
Posts: 3
Joined: Fri Oct 19, 2012 8:46 am

"clever" uninstalling possible?

Hi,
I noticed that uninstalling an application from the installer causes an uninstalling of all prerequisites without taking care if they were installed by the installer itself or if they had already existed before. Is there any way not to remove the prerequisites which have already existed before?

In case not, is there something like a "SetupTypeDlg" for uninstalling which allows to except installed prerequisites from uninstalling (if custom is choosed)?

(AdvancedInstaller professional is available)

Best regards
Bias
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: "clever" uninstalling possible?

Hi Bias,

Prerequisites are uninstalled only when their "Uninstall using this command line" field is set from the Setup Files tab.
Since that field is formatted here's what you can try:
- add a public property from the Install Parameters page which will hold the prerequisite uninstall command line
- reference that property in the prerequisite's "Uninstall using this command line" field
- add a search from the Search page which determines if the prerequisite should be uninstalled or not
- use that search to condition a "Set installer property" custom action scheduled after AppSearch standard action (this custom action should set the public property to the required prerequisite uninstall command line)

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

Return to “Building Installers”