WixUIFeatureTree を使用して、インストールするアプリケーションのコンポーネントのオプションをユーザーに提供しています... 私の機能の 1 つに 2 つのオプション機能があり、プログラムが動作するには少なくとも 1 つをインストールする必要があります。ユーザーに特定のものをインストールするように強制したくありませんが、少なくとも1つを選択するように強制する方法については途方に暮れています。
現在の 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>
いずれかがインストール用に選択されることを保証するために、シーケンスの適切なポイントに何らかのカスタム アクションを挿入する必要があると思いますが、それを行う方法や、それが正しいかどうかはわかりません。すべての助けに感謝します!