2002-10-04 17:46:02 +00:00
|
|
|
Name "nsExec Test"
|
|
|
|
|
|
|
|
OutFile "nsExec Test.exe"
|
|
|
|
|
|
|
|
ShowInstDetails show
|
|
|
|
|
2007-01-25 15:23:40 +00:00
|
|
|
Section "Silent MakeNSIS"
|
|
|
|
nsExec::Exec '"${NSISDIR}\makensis.exe"'
|
|
|
|
Pop $0 # return value/error/timeout
|
|
|
|
DetailPrint ""
|
|
|
|
DetailPrint " Return value: $0"
|
|
|
|
DetailPrint ""
|
|
|
|
SectionEnd
|
|
|
|
|
2002-11-07 21:54:22 +00:00
|
|
|
Section "MakeNSIS commands help"
|
2002-10-04 18:12:14 +00:00
|
|
|
nsExec::ExecToLog '"${NSISDIR}\makensis.exe" /CMDHELP'
|
2002-11-22 11:02:22 +00:00
|
|
|
Pop $0 # return value/error/timeout
|
2002-10-04 17:46:02 +00:00
|
|
|
DetailPrint ""
|
|
|
|
DetailPrint " Return value: $0"
|
2002-11-22 11:02:22 +00:00
|
|
|
DetailPrint ""
|
2002-11-07 21:54:22 +00:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Section "Output to variable"
|
2002-11-22 11:02:22 +00:00
|
|
|
nsExec::ExecToStack '"${NSISDIR}\makensis.exe" /VERSION'
|
|
|
|
Pop $0 # return value/error/timeout
|
|
|
|
Pop $1 # printed text, up to ${NSIS_MAX_STRLEN}
|
|
|
|
DetailPrint '"${NSISDIR}\makensis.exe" /VERSION printed: $1'
|
2002-11-07 21:54:22 +00:00
|
|
|
DetailPrint ""
|
2002-11-22 11:02:22 +00:00
|
|
|
DetailPrint " Return value: $0"
|
2002-11-07 21:54:22 +00:00
|
|
|
DetailPrint ""
|
2002-10-04 17:46:02 +00:00
|
|
|
SectionEnd
|