May 23, 2012

How do I set a property based on condition that a user has selected a feature in WIX?

1 comment
Problem:
I want to set a property to be used after the FeaturesDlg (the one with the feature tree) , based on condition that an user selected a feature or not. Is this possible?
I've declared a new property, but I don't know how to set its value (that feature is enabled/disabled on feature tree).

Solution:
We can find the feature is selected for installation or not usin
<![CDATA[&FeatureID=3]]>
This would give a true value, if it has been selected in the feature tree.

More Info:

Comparative Operators

The following table shows the comparison operators used in conditional expressions. These comparison operators can only occur between two values.
OperatorMeaning
=TRUE if left value is equal to right value.
<>TRUE if left value is not equal to right value.
>TRUE if left value is greater than right value.
>=TRUE if left value is greater than or equal to right value.
<TRUE if left value is less than right value.
<=TRUE if left value is less than or equal to right value.

1 comment :