Correct, as you note, you cannot log from a DoAction launched CA.
WcaProcessMessage is just a wrapper around MsiProcessMessage() that mostly adds
handling for cancel. WcaLog() is a wrapper around WcaProcessMessage() that
adds the concept of "logging levels" inside your own code and is used by the
ExitOnXxx macros in WiX CusotmActions.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of LEMIRE, JOHN
Sent: Wednesday, April 25, 2007 2:15 PM
To: WiX-users@lists.sourceforge.net
Subject: Re: [WiX-users] Logging in a custom action
Note huge caveat that ::MsiProcessMessage() doesn't work from DoAction so if
your CA is triggered by a button that will not work for logging.
Not sure how you're supposed to log from these, I have not found a solution,
perhaps someone else has....
Haven't used WcaProcessMessage so I can't say if it overcomes this
shortcoming...
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching
Sent: Wednesday, April 25, 2007 1:48 PM
To: [EMAIL PROTECTED]; WiX-users@lists.sourceforge.net
Subject: Re: [WiX-users] Logging in a custom action
::MsiProcessMessage() or WcaProcessMessage() if you're using wcautil.lib to
hide some of the trickier parts of the MSI API for CustomActions.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 1:08 PM
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] Logging in a custom action
Is there any way to write a message to the install log from a custom action?
Chris Rowland* Software Engineer * SunGard * Data Management Solutions * 1194
Oak Valley Drive, Suite 100 * Ann Arbor, MI 48108 * Tel 734.332.4423 * Fax
734.332.4440 * http://www.sungard.com/datamanagementsolutions
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users