How do I get the exit code of the process that I ran using 
CustomAction/@ExeCommand into the PROCESSEXIT property?


-----Original Message-----
From: Blair <os...@li...> - 2009-10-06 19:25
 
If your custom action runs before CostFinalize, use conditions based on
properties.
<Component Id='one' ...>
<Condition>PROCESSEXIT=0</Condition>
...
</Component>
<Component Id='two' ...>
<Condition>PROCESSEXIT&lt;&gt;0</Condition>
...
</Component>

If your custom action runs after CostFinalize, use MsiSetComponentState.

See the description of the "Condition" column in this page:
http://msdn.microsoft.com/library/aa368007.aspx

-----Original Message-----
From: David Battey [mailto:dbat...@ph...] 
Sent: Tuesday, October 06, 2009 7:15 AM
To: wix-us...@li...
Subject: [WiX-users] How can I capture the exit code from an ExeCommand 
CA?

I want to run an ExeCommand CA and then decide which of two components to 
install depending on the process's exit code . Is there a way to do this?

I can write a DllCommand to execute the .exe and assign the exit code to a 

property, but I'm wondering if there's a more direct way to do it.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to