Loading
Including custom action in build based on Release flag
My setup project has 3 release flags and depending on Release Flag set.exe is created. Some custom actions are only related to particular relaseFlag. So is there any way to include the CustomAction based on release Flag.

 

Note : Even if you include the ReleaseFlag in the condition of CustomAction, this custom action will be included in installer and during execution, condition is evaluated and custom action is executed.

  • Custom actions in InstallShield don't directly support release flags. Features and subfeatures do support release flags. Can you put your custom actions in different subfeatures, and then apply release flags to those subfeatures? You could make these special subfeatures invisible (so that they are not displayed in the feature selection dialogs).

     

    I hope that helps.

     

    Debbie Landers

     

    Macrovision Corporation
    Expand Post
  • Thanks for reply.

     

    My features are already associated with ReleaseFlags.

     

    My next questions is how to associate a custom action with a feature or subfeature?

     

    The only way seems to me is put a conditional check about the feature state in custom action.

     

    Is there any other way to associate a feature and subfeature with custom action?
    Expand Post
  • Sorry. Each custom action would be in a different component, and then those components would be associated with the appropriate features.

     

    Debbie Landers

     

    Macrovision Corporation
    Expand Post

Loading
Including custom action in build based on Release flag