Component Condition Based On Feature Select State - 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!

sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Component Condition Based On Feature Select State

Why isn't the following component condition working for me?

(&Enterprise_Master=3) OR ( &Enterprise_Server=3)

When I select both features (with the above identifiers) in the feature select tree dialog then the associated components do NOT get installed.

I thought this states if this "feature" is being installed locally then TRUE.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Component Condition Based On Feature Select State

Also FWIW the two components in question are in a different feature which is marked as "Installed By Default" (i.e. a common components feature group), if this should matter some how.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Component Condition Based On Feature Select State

To get around this I moved and copied the component into the 2 of 3 features that actually needed it versus leaving the components in a common feature.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Component Condition Based On Feature Select State

Hello,

Please keep in mind that you cannot use the related condition because Windows Installer evaluates conditions and set the feature actions in a random way. However, in order to achieve what you want you can share the related components between the desired feature. Go to "Organization" page and drag and drop the components to a new feature, while the Shift key is pressed.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”