Execution condition "REMOVE" options - 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!

ash_microsec
Posts: 38
Joined: Thu Dec 16, 2010 9:35 am
Location: Emsworth

Execution condition "REMOVE" options

I have a custom action which removes a file. This file is installed as a component of one feature in a package containing many features.

If I use the Execution Condition 'REMOVE="ALL" ', the custom action is performed when I use the "Remove" option on the "Modify, Repair or Remove Installation" window, but it is NOT performed if I use the "Modify" option and change the component's feature from "Installed" to "Unavailable".

What is the correct condition so the custom action is performed if the Feature is uninstalled or the entire package is uninstalled?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Execution condition "REMOVE" options

Hi,

You can try the following condition:

Code: Select all

(REMOVE="ALL") OR ((&MainFeature = 2) AND (!MainFeature = 3))
Where "MainFeature" is the identifier of your feature, not its name, you can see it in the Organization page.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ash_microsec
Posts: 38
Joined: Thu Dec 16, 2010 9:35 am
Location: Emsworth

Re: Execution condition "REMOVE" options

Thanks, that works.

Return to “Common Problems”