Button nsis禁用组件页面的下一步按钮
我正在使用nsis编写安装程序。 在“.onInit”Iam上检查必备软件是否存在,并基于此,我想启用或禁用组件页面的“下一步”按钮。以下是Iam尝试的内容Button nsis禁用组件页面的下一步按钮,button,nsis,next,Button,Nsis,Next,我正在使用nsis编写安装程序。 在“.onInit”Iam上检查必备软件是否存在,并基于此,我想启用或禁用组件页面的“下一步”按钮。以下是Iam尝试的内容 Function .onInit ${If} $JavaExists == false ;check if java is installed ${OrIf} $TomcatExists == false ;check if tomcat is installed ${OrIf}
Function .onInit
${If} $JavaExists == false ;check if java is installed
${OrIf} $TomcatExists == false ;check if tomcat is installed
${OrIf} $MysqlExists == false ;check if mysql is installed
;code to disable next button of component page
${EndIf}
FunctionEnd
组件页在中不存在。oninit,您需要在组件页的显示回调中调用
GetDlgItem
+EnableWindow
。此代码可能会对您有所帮助
${NSD_CreateButton} 40% 150 80 14u "Next"
Pop $BUTTON
EnableWindow $BUTTON 0--------;; disables button
谢谢你的回复,但哪种方法是正确的。我找不到showwill的回调方法!定义MUI\u页面\自定义功能\显示帮助?如果使用MUI,则显示“是”,如果不使用其页面组件,则显示“myshow”