SD Job returns the exit code of the script defined in the SD procedure. If the script called a second script, it will not report the exit code of the second script. How to report this ?
Package TEST_VBS 1.0 contains 2 files : install.bat and test.vbs
The install procedure executes install.bat
install.bat contains these lines :
echo test.vbs executed
test.vbs contains these lines :
When the package is sent to a machine, the SD Job is always is status OK because exit code is exit code of last line of install.bat script (which is echo command).
How to return the exit code (123) of vbs script in this example ?