开发者

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

开发者 https://www.devze.com 2022-12-23 03:05 出处:网络
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

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 do开发者_如何学编程n'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 (i.e. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消