我正在使用 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>
我猜我需要在序列的正确位置插入某种自定义操作,以确保选择安装其中一个或另一个,但不知道如何执行此操作,或者它是否正确。所有帮助表示赞赏!