Changed default timeout to 15 seconds (from 100 seconds). Returns now if CreateProcess fails. Now closes handles if unable to allocate memory.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1258 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
rainwater 2002-10-01 22:09:53 +00:00
parent 65bc61f40f
commit c9b3214463
3 changed files with 224 additions and 206 deletions

View file

@ -3,6 +3,7 @@ nsExec
nsExec will execute command-line based programs and capture the output
without opening a dos box.
Usage
-----
nsExec::Exec [/TIMEOUT=x] path
@ -15,13 +16,18 @@ Both functions are the same except ExecToLog will print the output
to the logwindow.
The timeout value is optional and is used to set the time in
milliseconds for the dll to wait for the process to return
milliseconds for the plugin to wait for the process to return
before it quits.
Return Value
------------
If nsExec is unable to execute the process, it will return "error"
on the top of the stack, else it returns "success".
on the top of the stack, else it returns the return code from the
executed process.
Copyright (c) 2002 Robert Rainwater
Copyright Info
--------------
Copyright (c) 2002 Robert Rainwater
Thanks to Justin Frankel and Amir Szekely