> I'm trying to automate a build process and detect whether light has > returned successfully. light.exe is returning exit code 259, > however 259 isn't defined in messages.xml.
Ah, I've solved my mystery. The function I was calling that redirects the captured output from light.exe wasn't always updating the process code after the spawned light process went inactive. 259 is also STILL_ACTIVE, a.k.a. STATUS_PENDING. I had something like this: GetExitCodeProcess(pi.hProcess, &exitCode); if(exitCode != STILL_ACTIVE) break; ...to exit from my wait loop, before making a MsgWaitForMultipleObjects call. I needed to add another call to GetExitCodeProcess() after exiting the loop to get the final exit code. Oops. :) ...Lorne Laliberte ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users