简体   繁体   中英

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

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).

I was able to interrogate it using

<![CDATA[&FeatureName=3]]>

This would give a true value if it had been selected in the feature tree

You could write a custom action that will evaluate the feature's state and action (ie is it currently installed or not, and is the action to install it or not) and then set the property accordingly.

Then schedule the custom action to run in the right sequence.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM