Register custom actions to run for specific features?

Mar 3, 2016 at 7:01 PM
Hi guys,

I would like to run sum set of actions only if certain features were selected to install, is there a way to register the actions to run for some features or should I need to create some properties to control the execution of them? (which is my poor-man's implementation)


Thanks in advance
Mar 4, 2016 at 4:22 AM
You will need to set a Condition for the action and this condition needs to evaluate if the feature is marked for installation.

You will need to use global variable ADDLOCAL that holds a coma separated list of the all features to be installed locally.
 new ManagedAction("MyAction", Return.check, When.After, Step.InstallInitialize, Condition.NOT_Installed)
{
    Condition = Condition.Create("ADDLOCAL >< \"your_feature_name\"")
}