Код:
!include "LogicLib.nsh"
SetCompressor /SOLID lzma
Name "InputBox"
OutFile "InputBox.exe"
RequestExecutionLevel user
ShowInstDetails show
XPStyle on
Page instfiles
Function .onInit
InitPluginsDir
Dialogs::InputBox 0 "Заголовок" "Введите кодовую фразу" "GO!" "Отмена" 1 2
${if} $1 = 1
StrCmp $2 "pass" okPass 0
MessageBox MB_ICONSTOP|MB_YESNO "Пароль неверный!$\r$\nПовторить ввод пароля?" IDYES -3 IDNO 0
Quit
${else}
Quit
${endif}
okPass:
FunctionEnd
Section ""
sleep 100
SectionEnd