I am writing a installer using nsis. On ".onInit" Iam checking prerequisite software are there or not and based on that I want to enable or disable "Next" button of component page.Here is what iam trying
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中不存在组件页面,您需要在组件页面的show回调中调用GetDlgItem
+ EnableWindow
。
this code may help you
${NSD_CreateButton} 40% 150 80 14u "Next"
Pop $BUTTON
EnableWindow $BUTTON 0--------;; disables button
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.