return codes from Run Program

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

return codes from Run Program

Postby uptime » Tue Oct 10, 2006 10:54 am

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:

Postby MichaelNesmith » Tue Oct 10, 2006 11:53 am

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/

uptime
Posts: 15
Joined: Mon Sep 18, 2006 11:33 am

Postby uptime » Tue Oct 10, 2006 12:20 pm

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

Postby uptime » Wed Oct 11, 2006 10:19 am

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 33 guests