!include "MUI.nsh" Name "Modern UI Test" OutFile "WelcomeFinish.exe" InstallDir "$LOCALAPPDATA\Modern UI Test" !define MUI_PAGE_CUSTOMFUNCTION_show Pageshow !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_FINISH !insertmacro MUI_LANGUAGE "SimpChinese" Section SectionEnd Function Pageshow ;禁用浏览按钮 FindWindow $0 "#32770" "" $HWNDPARENT GetDlgItem $0 $0 1001 EnableWindow $0 0 ;禁用编辑的目录 FindWindow $0 "#32770" "" $HWNDPARENT GetDlgItem $0 $0 1019 EnableWindow $0 0 FunctionEnd
转自:LYLtim