CA runs in de-selected merge module - 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!

PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

CA runs in de-selected merge module

I have a merge module that is associated with a particular feature. This merge module has an installed custom action that is run during the Install standard action. If the feature is not selected, this CA still appears to attempt to run and fails because the file is not present! Why is this happening?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: CA runs in de-selected merge module

Hello,

Please note that Custom Actions are not part of a feature. They are independent components of an installer. It does not matter whether your feature is installed or not. Your Custom Action should check whether the feature is installed or not, before doing whatever it is that it's doing. You can use the "Feature State" and "Feature Action" buttons on the Edit condition Dialog to condition your custom action to execute or not depending on the state or action of your feature.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: CA runs in de-selected merge module

OK, Thanks for that.
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: CA runs in de-selected merge module

I can't seem to get this to work at the feature level. I only want the CA to run only when the feature is selected (or alternatively, I do not want to run the CA when the feature is uninstalled or when the feature is not selected). I am trying to run the CA during the InstallValidate stage and have tried using both pre-defined conditions and tests like &Feature >2 .
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: CA runs in de-selected merge module

Please ignore previous reply. Logic problem - using OR instead of AND!

Return to “Common Problems”