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
Wix 如果没有选择要安装的功能,我想禁用“下一步”按钮_Wix - Fatal编程技术网

Wix 如果没有选择要安装的功能,我想禁用“下一步”按钮

Wix 如果没有选择要安装的功能,我想禁用“下一步”按钮,wix,Wix,这是mi安装程序,如果没有选择要安装的功能,我需要禁用“下一步”按钮 <Feature Id="App1" Title="App 1" Level="1" AllowAdvertise='no' InstallDefault='local'> <Condition Level="0">INSTALL_FEATURES = 0</Condition> <ComponentRef Id="App1" /> </Feature>

这是mi安装程序,如果没有选择要安装的功能,我需要禁用“下一步”按钮

<Feature Id="App1" Title="App 1" Level="1" AllowAdvertise='no' InstallDefault='local'>
    <Condition Level="0">INSTALL_FEATURES = 0</Condition>
    <ComponentRef Id="App1" />
</Feature>

<Feature Id="App2" Title="App 2" Level="1" AllowAdvertise='no' InstallDefault='local'>
    <Condition Level="0">INSTALL_FEATURES = 0</Condition>
    <ComponentRef Id="App2" />
</Feature>

<UIRef Id="WixUI_FeatureTree"/>
<UIRef Id="WixUI_ErrorProgressText" />


安装\u功能=0
安装\u功能=0


谢谢

MSI本机UI不允许您以所需的方式启用和禁用控件。最好的方法是编写事件条件,检查是否未选择任何功能以显示带有错误消息的模式对话框,否则显示下一个对话框。请务必考虑维护/更改和/或升级方案的后果。 MSI本机UI不允许您以所需的方式启用和禁用控件。最好的方法是编写事件条件,检查是否未选择任何功能以显示带有错误消息的模式对话框,否则显示下一个对话框。请务必考虑维护/更改和/或升级方案的后果。 如果您有自定义UI,则可以为该控件提供两个条件:

          <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="[ButtonText_Next]">
            <Publish Event="NewDialog" Value="HtVerifyReadyDlg">1</Publish>
            <Condition Action="disable"><![CDATA[NOT(&App1=3 OR &App2=3)]]></Condition>
            <Condition Action="enable"><![CDATA[(&App1=3 OR &App2=3)]]></Condition>
          </Control>

1.

如果您有自定义UI,则可以为该控件提供两个条件:

          <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="[ButtonText_Next]">
            <Publish Event="NewDialog" Value="HtVerifyReadyDlg">1</Publish>
            <Condition Action="disable"><![CDATA[NOT(&App1=3 OR &App2=3)]]></Condition>
            <Condition Action="enable"><![CDATA[(&App1=3 OR &App2=3)]]></Condition>
          </Control>

1.