我想根据用户选择创建 Wix 安装程序来安装、客户端、服务器或两者。
我的问题是当用户选择服务器时如何限制安装客户端(它被安装,因为它具有级别 = 1)。我已经定制了 WixUI_Mondo。
我尝试使用 Condition for Component 但没有运气。
<Feature Id="Client" Level="1">
<ComponentRef Id="ClientMainExecutable" />
<ComponentRef Id="ClientConfigurations" />
</Feature>
<Feature Id="Server" Level="3">
<ComponentRef Id="ServerExecutable" />
<ComponentRef Id="ServerConfigurations" />
</Feature>
<Feature Id="Both" Level="1000">
</Feature>
</Feature>
<UIRef Id="myWixUI_Mondo" />