Page 1 of 1

setup.exe return value

Posted: Wed Dec 17, 2008 5:12 pm
by jsmith
From another program, I'd like to run my InstallAware-built setup.exe in silent mode and capture the return value from setup.exe. It seems that the return value is always 0 regardless of whether the install succeeded of failed. Is there something I can do in the MSICode to cause the return value to be something else to signify that the install/uninstall was not successful? Thanks in advance to anyone that can help!

Posted: Thu Dec 18, 2008 2:07 am
by ulrichard
Hi Jsmith,

did you use the "Terminate with Exit Code " command?

Rgds
Richard

Posted: Thu Dec 18, 2008 8:30 am
by jsmith
Thanks, Richard. That's really useful. The script doesn't explicitly call Terminate Install. I didn't find the Terminate with Exit Code command whilst searching because I was looking for things like "return code" and "result value."