home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 March / CMCD0304.ISO / Software / Freeware / Programare / nullsoft / nsis20.exe / Contrib / nsExec / test.nsi < prev   
Text File  |  2004-01-25  |  616b  |  23 lines

  1. Name "nsExec Test"
  2.  
  3. OutFile "nsExec Test.exe"
  4.  
  5. ShowInstDetails show
  6.  
  7. Section "MakeNSIS commands help"
  8.     nsExec::ExecToLog '"${NSISDIR}\makensis.exe" /CMDHELP'
  9.     Pop $0 # return value/error/timeout
  10.     DetailPrint ""
  11.     DetailPrint "       Return value: $0"
  12.     DetailPrint ""
  13. SectionEnd
  14.  
  15. Section "Output to variable"
  16.     nsExec::ExecToStack '"${NSISDIR}\makensis.exe" /VERSION'
  17.     Pop $0 # return value/error/timeout
  18.     Pop $1 # printed text, up to ${NSIS_MAX_STRLEN}
  19.     DetailPrint '"${NSISDIR}\makensis.exe" /VERSION printed: $1'
  20.     DetailPrint ""
  21.     DetailPrint "       Return value: $0"
  22.     DetailPrint ""
  23. SectionEnd