Archive: Return value from ExecWait


Return value from ExecWait
Hey all,

I know I can check the error flag to see if ExecWait returned an error, but is there any way to see what that error is?


(Boy, don't I feel stupid. Sorry for the waste of bandwidth.)

7.5 ExecWait

ExecWait command [user_var(exit code)]

Execute the specfied program and wait for the executed process to quit. See Exec for more information. If no output variable is specified ExecWait sets the error flag if the program executed returns a nonzero error code, or if there is an error. If an output variable is specified, ExecWait sets the variable with the exit code (and only sets the error flag if an error occurs; if an error occurs the contents of the user variable are undefined). Note, if the command could have spaces, you may with to put it in quotes to delimit it from parameters. i.e.: ExecWait '"$INSTDIR\command.exe" parameters'