Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Combobox Wix安装程序-基于单选按钮更改更改组合框值_Combobox_Wix_Windows Installer_Installation_Msi Gui - Fatal编程技术网

Combobox Wix安装程序-基于单选按钮更改更改组合框值

Combobox Wix安装程序-基于单选按钮更改更改组合框值,combobox,wix,windows-installer,installation,msi-gui,Combobox,Wix,Windows Installer,Installation,Msi Gui,在下面的代码中,当我们选择Radiobutton时,我试图更改组合框的值,但它没有更改 <Control Id="radioButtonGroupBox1" Type="RadioButtonGroup" Property="INSTALL_CUSTOMSCALE" Height="34" Width="64" X="48" Y="99"> <RadioButtonGroup Property="INSTALL_CUSTOMSCALE">

在下面的代码中,当我们选择Radiobutton时,我试图更改组合框的值,但它没有更改

<Control Id="radioButtonGroupBox1" Type="RadioButtonGroup" 
         Property="INSTALL_CUSTOMSCALE" Height="34" Width="64" X="48" Y="99">
        <RadioButtonGroup Property="INSTALL_CUSTOMSCALE">
            <RadioButton X="5" Y="2" Height="15" Width="56" 
                                Text="Custom" Value="Custom" />
            <RadioButton X="5" Y="18" Height="15" Width="56" 
                                Text="Scaleout" Value="Scaleout" />
        </RadioButtonGroup>
         <Publish Property="CUSTOM_OPTION" Value="Server1" ></Publish>      

 </Control>
<Control Id="cmbCustomOption" Type="ComboBox" Property="CUSTOM_OPTION" 
             Height="16" Width="166" X="116" Y="101" >
    <ComboBox Property="CUSTOM_OPTION">
        <ListItem Text="Select..." Value="Select..."   />
        <ListItem Text="Server1" Value="Server1" />
        <ListItem Text="Server2" Value="Server2" />
        <ListItem Text="Server3" Value="Server3" />
        <ListItem Text="Server4" Value="Server4" />
    </ComboBox>

</Control>


以及如何设置Combobox不可编辑(只读)

要设置Combobox不可编辑,只需添加“ComboList=yes


对于更新组合框控件,这是否回答了您的问题-
<Control Id="cmbCustomOption" Type="ComboBox" Property="CUSTOM_OPTION" Height="16" 
          Width="166" X="116" Y="101" ComboList="yes">
          <ComboBox Property="CUSTOM_OPTION">
            <ListItem Text="Select..." Value="Select..."   />
            <ListItem Text="Server1" Value="Server1" />
            <ListItem Text="Server2" Value="Server2" />
            <ListItem Text="Server3" Value="Server3" />
            <ListItem Text="Server4" Value="Server4" />
          </ComboBox>
</Control>