Wix应该在两个功能中安装任何一个功能
我在WIX源代码,feature_a和feature_b。中有两个功能,并在安装程序中填充功能。
在我的用例中,安装程序应允许feature_a或feature_b,而不是两者。 如果用户选择这两个功能,则安装程序应警告不要进一步进行。
我没有为安装程序使用自定义对话。作为标准安装程序序列的一部分,是否可以进行此条件检查?有什么建议吗?
I have two features in the Wix source code, Feature_A, and Feature_B., and populate the FeatureTree in the installer.
In my Use case, the installer should allow either the Feature_A or Feature_B, not both.
if the user has selected both features, the installer should warn not to proceed further.
I am not using customized dialogues for the installer. Is this possible to do this condition check as part of the standard installer sequence? any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MSI中没有互斥功能的概念。您必须修改UI(并具有静音安装的矫形门检查),以便在未选择或两个功能的情况下不进行。
另一种可能性是不显示此屏幕并将选择抽象为RadioButton组,并根据选择的RadioButton设置了安装的反引起功能。
There's no concept of mutually exclusive features in MSI. You have to modify the UI (and have corrospending gate checks for silent installations ) to not proceed if neither or both features are selected.
Another possibility is to not show this screen and abstract the selection to a radiobutton group and based on which radiobutton is selected set the corrosponding feature for installation.