如何根据用户在 WIX 中选择功能的条件设置属性?
我想设置一个在 FeaturesDlg 之后使用的属性(带有 特征树),基于用户选择特征或 不是。这可能吗?
我已经声明了一个新属性,但我不知道如何设置其值(该功能在功能树上启用/禁用)。
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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我可以使用
This will get a true value if it was selected in the feature tree 来询问它
I was able to interrogate it using
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.