を働いていない私は、ウィックス-インストーラを持っていると私のTargetFolder-SELECTION-ダイアログにラジオボタングループを追加しました:WiXの - 機能 - 条件
<Property Id="INSTALLATION_TYPE" Secure="yes" Value="Server"/>
<RadioButtonGroup Property="INSTALLATION_TYPE">
<RadioButton Height="17" Text="Client" Value="Client" Width="342" X="0" Y="0" />
<RadioButton Height="17" Text="Server" Value="Server" Width="342" X="0" Y="18" />
</RadioButtonGroup>
出力を以下、サーバとクライアントの間の切り替えに印刷されますMSI-ログファイル:続くよう
MSI (c) (04:B4) [17:17:56:295]: PROPERTY CHANGE: Modifying INSTALLATION_TYPE property. Its current value is 'Server'. Its new value: 'Client'.
マイ機能-表ロック:
<PropertyRef Id="INSTALLATION_TYPE"/>
<Feature Id="CommonFeature" Level="1" Title="Common Feature">
<ComponentGroupRef Id="Common"/>
<ComponentGroupRef Id="RegistryKeys"/>
<Feature Id="FeatureServer" Title="Server" Level="2">
<Condition Level="1"><![CDATA[INSTALLATION_TYPE="Server"]]></Condition>
<ComponentGroupRef Id="Server"/>
<ComponentGroupRef Id="AdminConsole"/>
</Feature>
<Feature Id="FeatureClient" Title="Client" Level="2">
<Condition Level="1"><![CDATA[INSTALLATION_TYPE="Client"]]></Condition>
<ComponentGroupRef Id="Client"/>
</Feature>
</Feature>
しかし、機能クライアントラジオボタン "クライアント"を選択した場合は、サーバーはインストールされません。 Feature Serverは常にインストールされます。ログファイルには次のように表示されます:
MSI (s) (DC:5C) [17:18:35:750]: Feature: FeatureServer; Installed: Absent; Request: Null; Action: Null
MSI (s) (DC:5C) [17:18:35:753]: Feature: FeatureClient; Installed: Absent; Request: Null; Action: Null
MSI (s) (DC:5C) [17:18:35:755]: Feature: CommonFeature; Installed: Absent; Request: Local; Action: Local
私は間違っていますか?