I disable Next button in pre-, show- and leave- functions of directory page, but it becomes visible again as soon as function exits. Are there any workarounds? Can it be fixed in next release?
OutFile "test.971.exe"
Page directory "" makeDisabled checkFiles
Page instfiles
Function makeDisabled
GetDlgItem $0 $HWNDPARENT 1 # next/install button
EnableWindow $0 1
MessageBox MB_OK "$0"
FunctionEnd
Function checkFiles
GetDlgItem $0 $HWNDPARENT 1 # next/install button
EnableWindow $0 0
MessageBox MB_OK "$0"
Abort
FunctionEnd
Section
DetailPrint $INSTDIR
SectionEnd