scriptable-client-installers/tools/Examples/nsDialogs/InstallOptions.nsi

48 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-12-15 16:09:19 -05:00
!include LogicLib.nsh
!include WinMessages.nsh
Name "nsDialogs IO"
OutFile "nsDialogs IO.exe"
Page custom nsDialogsIO UpdateINIState
Page instfiles
XPStyle on
ShowInstDetails show
!include nsDialogs.nsh
!insertmacro NSD_FUNCTION_INIFILE
Function nsDialogsIO
InitPluginsDir
File /oname=$PLUGINSDIR\io.ini "..\InstallOptions\test.ini"
${If} ${Cmd} `MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Test the right-to-left version?" IDYES`
WriteINIStr $PLUGINSDIR\io.ini Settings RTL 1
${EndIf}
StrCpy $0 $PLUGINSDIR\io.ini
Call CreateDialogFromINI
FunctionEnd
Section
ReadINIStr $0 "$PLUGINSDIR\io.ini" "Field 2" "State"
DetailPrint "Install X=$0"
ReadINIStr $0 "$PLUGINSDIR\io.ini" "Field 3" "State"
DetailPrint "Install Y=$0"
ReadINIStr $0 "$PLUGINSDIR\io.ini" "Field 4" "State"
DetailPrint "Install Z=$0"
ReadINIStr $0 "$PLUGINSDIR\io.ini" "Field 5" "State"
DetailPrint "File=$0"
ReadINIStr $0 "$PLUGINSDIR\io.ini" "Field 6" "State"
DetailPrint "Dir=$0"
ReadINIStr $0 "$PLUGINSDIR\io.ini" "Field 8" "State"
DetailPrint "Info=$0"
SectionEnd