user3453636
user3453636

Reputation: 77

Install a file only if both the features are selected

There are two features - feature1 and feature2;I need to install a file only if both the features are selected, for which i have written:

  <Component Id="cmpCFA15F2C5DC1EEEA145360EA017FB322" Guid="*">
    <Condition><![CDATA[(&feature1=3) AND (&feature2=3)]]></Condition>
    <File Id="filCB4BD4847E5BDFC79A4308D520941A22" KeyPath="yes" Source="$(var.Binsourcedir)\hello.exe" />
  </Component>

But it does not work, any help is appreciated.What is that i am missing?.Thanks in advance

Upvotes: 1

Views: 763

Answers (1)

Bob Arnson
Bob Arnson

Reputation: 21886

Feature states in component conditions won't work. See http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/ for my breakdown of why it doesn't work.

Upvotes: 2

Related Questions