
jackwmlai1.55249417415011E12 asked a question.
detecting exit code
I was trying to detect errors with some customized programs called in the InstallScript of my INstallScriptMSI project. In my "testError.exe" program, I flagged the exitcode to 1 or 0 respectively when encountered errors.
I use the following IS function:
nResult = LaunchAppAndWait(SUPPORTDIR ^ "testError.exe", "", WAIT);
But I soon found out that this function always return 0 no matter what was returned by testError.exe. And apparently all [FONT="Courier New"]LaunchApp() [/FONT]related functions would do the same.
So, is there a way to retrieve the exit value of testError.exe with a InstallScript function, or any other way?
To retrieve the return value of the launched application evaluate:
LAAW_PARAMETERS.nLaunchResult
(if LAAW_OPTION_WAIT option was specified)
Thanks!