“决策表”在WIX中

发布于 2024-08-30 05:29:41 字数 99 浏览 1 评论 0原文

我正在寻找一种使用 WIX 创建安装程序的方法,该方法从 xml 文件(或仅文件中的一个简单表)加载设置,并根据 xml/表中的数据修改安装程序的功能。

有什么想法吗?

I'm searching a way to create a Setup with WIX, which is loading settings from a xml-file (or only a simple table in the file) and modifies the features of the setup depending on the data in the xml/table.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

给不了的爱 2024-09-06 05:29:41

WiX 没有 xmlLocator 模式,因此您必须编写自定义操作来将数据集读入属性。从那里开始,这取决于您所说的修改功能的含义。您只是想隐藏、安装或不安装该功能,还是您有更动态的想法?

如果是前者,您可以使用在 Condition 元素中加载的属性来更改相对于 INSTALLLEVEL 属性的功能的 installLevel。如果您有更复杂的想法(不太可能),您将必须使用自定义操作将临时行发送到功能/功能组件表中。

WiX doesn't have an xmlLocator pattern so you will have to write a custom action to read your dataset into properties. From there it depends on what you mean by modify features. Do you just mean hide, install or don't install the feature or do you have something more dynamic in mind?

If the former, you can use the properites you loaded in Condition elements to change the installLevel of the features relative to your INSTALLLEVEL property. If you have something more complex in mind ( unlikely ) you would have to use a custom action to emit temporary rows into the feature / featurecomponents table.

花之痕靓丽 2024-09-06 05:29:41

您可以在线使用决策表:

https://www.azaig.de/dt.html

这将生成一个独特的决策表链接以供共享。

You can use decisiontables on-line:

https://www.azaig.de/dt.html

This will produce a unique decisiontable-link to share.

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