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
return codes from Run Program
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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).
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
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
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
Who is online
Users browsing this forum: Google [Bot] and 30 guests