【发布时间】:2009-09-02 01:29:32
【问题描述】:
我正在使用 WixUIFeatureTree 向用户提供他们想要安装我的应用程序的哪些组件的选项...我的一个功能中有两个可选功能,必须至少安装其中一个才能使程序工作.我不想强迫用户安装任何一个,但我不知道如何强迫他们选择至少一个。
这是我当前 WXS 的相关部分:
<Feature Id="Main" Title="Product Name" Level="1" Absent="disallow" Display="expand" AllowAdvertise="no"
Description="This is the application, and is a required component"
>
<ComponentRef Id="Baseline" />
<ComponentRef Id="Shortcuts" />
<Feature Id="Option1" Title="Plugin #1" Level="2" Absent="allow" AllowAdvertise="no">
<ComponentRef Id="Plugin1Component" />
</Feature>
<Feature Id="Option2" Title="Plugin #2" Level="3" Absent="allow" AllowAdvertise="no">
<ComponentRef Id="Plugin2Component" />
</Feature>
</Feature>
我猜我需要在序列的正确位置插入某种自定义操作,以确保选择安装其中一个,但不知道如何执行此操作,或者是否甚至对。感谢所有帮助!
【问题讨论】:
标签: installation wix wix3