I'm trying to install feature depending on condition. I wrote following
code:
Fragment
Feature Id=F1 Level=1
ComponentRef Id=F1C1/
ComponentRef Id=F1C2/
Condition Level=0NOT (CONDITION_PROPERTY=F1)/Condition
/Feature
Feature Id=F2 Level=1
ComponentRef Id=F2C1/
I believe that this is expected behavior for MSI. Conditional features are evaluated during the CostFinalize standard action, which must be executed BEFORE the UI is displayed. This allows for conditional feature installation based on properties that are setup prior to the UI running - such as OS
For your second question:
you need to surround that statement with
![CDATA[CONDITION_PROPERTYF1]] so that the XML parser does not
interpret as an empty element. Alternatively, you can use
CONDITION_PROPERTY lt; gt; F1
installed! Why?
And another question...
I tried to use '' as 'not
3 matches
Mail list logo