使用三个单选按钮时 Wix 安装程序错误 2878
Wix installer error 2878 when using three radiobuttons
我使用 wix 工具集为 WPF 应用程序创建安装程序。当我想使用三个单选按钮时,出现错误:
"The installer has encountered an unexpected error installing this
package. This may indicate a problem with this package. The error code
is 2878".
但是当我使用两个单选按钮时一切正常。
这是我的代码:
<UI>
<Property Id="AppType" Value="False"/>
<Dialog Id="PoolSettingsDlg" Width="370" Height="270" Title="Application Pool Settings - [ProductName]" NoMinimize="yes">
<Control Type="RadioButtonGroup" Property="AppType" Id="AUTH" Width="144" Height="100" X="45" Y="100">
<RadioButtonGroup Property="AppType">
<RadioButton Text="!(loc.AppTypeDefault)" Height="15" Value="False" Width="150" X="0" Y="0" />
<RadioButton Text="!(loc.AppTypeCallCenter)" Height="15" Value="False" Width="150" X="0" Y="15" />
<RadioButton Text="!(loc.AppTypeFoodPoint)" Height="15" Value="True" Width="150" X="0" Y="30" />
</RadioButtonGroup>
</Control>
</Dialog>
</UI>
RadioButtonGroup 中 RadioButton 的值属性必须不同。
2xFalse 不是,因此是错误。
我会选择 Value=Default、CallCenter、FoodPoint。
我使用 wix 工具集为 WPF 应用程序创建安装程序。当我想使用三个单选按钮时,出现错误:
"The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2878".
但是当我使用两个单选按钮时一切正常。 这是我的代码:
<UI>
<Property Id="AppType" Value="False"/>
<Dialog Id="PoolSettingsDlg" Width="370" Height="270" Title="Application Pool Settings - [ProductName]" NoMinimize="yes">
<Control Type="RadioButtonGroup" Property="AppType" Id="AUTH" Width="144" Height="100" X="45" Y="100">
<RadioButtonGroup Property="AppType">
<RadioButton Text="!(loc.AppTypeDefault)" Height="15" Value="False" Width="150" X="0" Y="0" />
<RadioButton Text="!(loc.AppTypeCallCenter)" Height="15" Value="False" Width="150" X="0" Y="15" />
<RadioButton Text="!(loc.AppTypeFoodPoint)" Height="15" Value="True" Width="150" X="0" Y="30" />
</RadioButtonGroup>
</Control>
</Dialog>
</UI>
RadioButtonGroup 中 RadioButton 的值属性必须不同。 2xFalse 不是,因此是错误。 我会选择 Value=Default、CallCenter、FoodPoint。