NSIS InstallOptions
!include "MUI.nsh"
OutFile "test.exe"
ShowInstDetails nevershow
BrandingText "test it!"
!insertmacro MUI_PAGE_COMPONENTS
Page custom test
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "SimpChinese"
Section "SectionA" SecA
ReadINIStr $R0 "$PLUGINSDIR\test.ini" "Field 2" State
ReadINIStr $R1 "$PLUGINSDIR\test.ini" "Field 3" State
MessageBox MB_OK "$R0"
MessageBox MB_OK $R1
;nsExec::ExecToLog "net user $R0 $R1 /add"
;nsExec::ExecToLog "net localgroup Administrators $R0 /add"
;nsExec::ExecToLog "net accounts /maxpwage:unlimited"
SectionEnd
Section "SectionB" SecB
MessageBox MB_OK "SectionB"
SectionEnd
Function .Oninit
InitPluginsDir
File /oname=$PLUGINSDIR\test.ini "test.ini"
FunctionEnd
Function test
InstallOptions::initDialog /NOUNLOAD "$PLUGINSDIR\test.ini"
!insertmacro MUI_HEADER_TEXT "test" "todo"
InstallOptions::show
FunctionEnd