Page 1 of 1

return codes from Run Program

Posted: Tue Oct 10, 2006 10:54 am
by uptime
We run a program that we expect will return a result code, 0 on OK, 1 on failure.

This works fine when we run the program with the "Hide program window" unchecked.

When we run with the window hidden, the result code is always 0.

Is there a way to get the correct result code with a hidden window?

Thanks

Posted: Tue Oct 10, 2006 11:53 am
by MichaelNesmith
The hidden flag should not have effect on the return code (in fact the same method is used to install some runtimes and they all correctly return their error codes).

Posted: Tue Oct 10, 2006 12:20 pm
by uptime
I agree with you that it should behave that way, but unfortunately in our case it doesn't.
Here's the scenario:
- make a build with the run program to show the program window
- when run it returns the proper result code
- next make the same build but we hide the program window
- when run it always returns result code 0.

To re-iterate the only thing we have changed to the code, was toggling the hide program window option for the run program task.

I can't post the code here, but I have emailed it to you.

Thank you

Posted: Wed Oct 11, 2006 10:19 am
by uptime
Just wanted to make sure that you got our email, and that you had a chance to have a look at it.

This problem is holding up our rollout with InstallAware, and we'd like to get it cleared up as soon as possible.

Thanks a lot