如何根据用户在 WIX 中选择功能的条件设置属性?

发布于 2024-08-25 13:16:59 字数 109 浏览 0 评论 0原文

我想设置一个在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

扭转时空 2024-09-01 13:16:59

我可以使用

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

This will get a true value if it was selected in the 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

夜吻♂芭芘 2024-09-01 13:16:59

您可以编写一个自定义操作来评估该功能的状态和操作(即当前是否已安装,以及是否安装它的操作),然后相应地设置属性。

然后安排自定义操作以正确的顺序运行。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文