Wix安装程序--无法查看对话框上的单选按钮
我试图让用户选择一种身份验证模式,以连接到数据库。我提供的两种选择是:windows身份验证和sql server身份验证 由于某些原因,我无法看到对话框上的单选按钮 对话框代码如下所示:Wix安装程序--无法查看对话框上的单选按钮,wix,installation,Wix,Installation,我试图让用户选择一种身份验证模式,以连接到数据库。我提供的两种选择是:windows身份验证和sql server身份验证 由于某些原因,我无法看到对话框上的单选按钮 对话框代码如下所示: <Property Id="CHOICE_WIN_SQL" Value="1" Secure="yes"/> <Dialog Id="WinSqlChoiceDlg" Width="370" Height="270" Title="[ProductName] Setup">
<Property Id="CHOICE_WIN_SQL" Value="1" Secure="yes"/>
<Dialog Id="WinSqlChoiceDlg" Width="370" Height="270" Title="[ProductName] Setup">
<Control Type="Text" Width="275" Height="10" X="25" Y="98" Id="TestRadioButton" Text="Radio button should appear below:" />
<Control Id="AuthenticationType" Property="CHOICE_WIN_SQL" Type="RadioButtonGroup" X="25" Y="98" Width="300" Height="50">
<RadioButtonGroup Property="CHOICE_WIN_SQL">
<RadioButton X="25" Y="110" Value="0" Height="10" Width="275" Text="Windows Authentication"/>
<RadioButton X="25" Y="123" Value="1" Height="10" Width="275" Text="Sql Authentication"/>
</RadioButtonGroup>
</Control>
</Dialog>
将Radio按钮的X和Y值更改为以下数字: 单选按钮X=“0”Y=“0” 单选按钮X=“0”Y=“20” 所以它们应该是这样的:
<RadioButton X="0" Y="0" Value="0" Height="10" Width="275" Text="Windows Authentication"/>
<RadioButton X="0" Y="20" Value="1" Height="10" Width="275" Text="Sql Authentication"/>
<Property Id="CHOICE_WIN_SQL" Value="1" Secure="yes"/>
<Dialog Id="WinSqlChoiceDlg" Width="370" Height="270" Title="[ProductName] Setup">
<Control Type="Text" Width="275" Height="10" X="25" Y="50" Id="TestRadioButton" Text="Radio button should appear below:" />
<Control Id="AuthenticationType" Property="CHOICE_WIN_SQL" Type="RadioButtonGroup" X="25" Y="98" Width="300" Height="50">
<RadioButtonGroup Property="CHOICE_WIN_SQL">
<RadioButton X="0" Y="0" Value="0" Height="10" Width="275" Text="Windows Authentication"/>
<RadioButton X="0" Y="20" Value="1" Height="10" Width="275" Text="Sql Authentication"/>
</RadioButtonGroup>
</Control>
现在将显示单选按钮,但“Windows身份验证”单选按钮将与标签重叠。因此,将Y值更改为50,例如:
<Control Type="Text" Width="275" Height="10" X="25" Y="50" Id="TestRadioButton"
Text="Radio button should appear below:" />
您的最终代码应该如下所示:
<RadioButton X="0" Y="0" Value="0" Height="10" Width="275" Text="Windows Authentication"/>
<RadioButton X="0" Y="20" Value="1" Height="10" Width="275" Text="Sql Authentication"/>
<Property Id="CHOICE_WIN_SQL" Value="1" Secure="yes"/>
<Dialog Id="WinSqlChoiceDlg" Width="370" Height="270" Title="[ProductName] Setup">
<Control Type="Text" Width="275" Height="10" X="25" Y="50" Id="TestRadioButton" Text="Radio button should appear below:" />
<Control Id="AuthenticationType" Property="CHOICE_WIN_SQL" Type="RadioButtonGroup" X="25" Y="98" Width="300" Height="50">
<RadioButtonGroup Property="CHOICE_WIN_SQL">
<RadioButton X="0" Y="0" Value="0" Height="10" Width="275" Text="Windows Authentication"/>
<RadioButton X="0" Y="20" Value="1" Height="10" Width="275" Text="Sql Authentication"/>
</RadioButtonGroup>
</Control>
这应该能奏效