如果未选择子功能,WIX 将禁用父功能
当没有选择子功能时,有什么方法可以禁用 Wix 功能树中的功能吗? 不幸的是,Wix 默认情况下不这样做。 提前致谢 - 托马斯
is there any way to disable a feature in the featuretree of Wix, when there are no subfeatures selected?
Unfortunatly Wix doesn't do that by default.
Thanks in advance - Thomas
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是因为 Windows Installer 没有这样的功能。您能做的最好的事情就是编写一个自定义操作,该操作会遍历您的功能树并在孩子未设置安装时禁用父母。
否则,您是否可以重新排列功能树/组件,以便父功能不安装任何内容;只有他们的孩子吗?
This is because Windows Installer has no such capability. The best you could do is write a custom action that walks your featuretree and disables parents when children and not set to install.
Otherwise, can you possibly rearrange your feature tree / components so that the parent features don't install anything; oly their children do?