我有维克斯安装程序,并增加了一个单选按钮组到我的TargetFolder选择-对话框:维克斯 - 功能 - 条件不工作
<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客户和“服务器”在选择RadioButton“Client”时从不安装。功能服务器始终安装。日志文件说如下:
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
我做错了什么?