Custom Action Only if uninstall With Parameter - 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!

lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Custom Action Only if uninstall With Parameter

Hello,
I want to delete a file from %ProgramData% folder if the uninstall was ran. And if I run the uninstall with a parameter, it will not delete the file.
How can I perform that?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Custom Action Only if uninstall With Parameter

Hello,

You can easily achieve this using a custom action.
Perhaps a bat file would be the most suitable.
Condition your custom action only to run with :

Code: Select all

REMOVE = ALL AND NOT YOUR_PROPERTY
your custom action will run during uninstall and only if YOUR_PROPERTY is not set.

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

Return to “Common Problems”