return codes from Run Program

Got a problem you cannot solve? Try here.
Post Reply
uptime
Posts: 15
Joined: Mon Sep 18, 2006 11:33 am

return codes from Run Program

Post 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
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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).
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
uptime
Posts: 15
Joined: Mon Sep 18, 2006 11:33 am

Post 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
uptime
Posts: 15
Joined: Mon Sep 18, 2006 11:33 am

Post 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
Post Reply