Reputation: 77
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
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