1) In the checkbox page's leave function, store the state of the checkbox into a variable.
2) In your directory page's pre function, call 'abort' if the variable is not set. This will make NSIS skip the directory page.
Should i change pre function of Directory.nsh of NSIS\Contrib\Modern UI 2\Pages path Or can i do it in my nsis script.now i have something like this
Function nsDialogsPageLeave
${NSD_GetText} $Text $Text_State
${NSD_GetState} $Checkbox $Checkbox_State
${If} $Checkbox_State == ${BST_CHECKED}
;script to open directory page
${EndIf}
FunctionEnd
can i do any coding to open a directory page in the above code.i think i cannot call "call directory" in this case.any idea to do it?or any alternative?