I was able to resolve my build errors by "defining" everything missing
myself (to /**/ ).
I read that they might be defined by default in VS05, but not in VS03
(what I'm using.)
However, I rebuilt my installer with the new DLL and ran it with *cv
logging, and I still don't see anything.
The CA call seems to execute properly in all other regards.
I put a WcaLog statement as the first line in my method.
extern "C" UINT __stdcall VerifyLicenseDir(MSIHANDLE hInstall)
{
WcaLog(LOGMSG_STANDARD, "Enter VerifyLicenseDir");
Here's the section of log where I expected to see some output.
MSI (c) (4C:98) [13:21:11:484]: Doing action: VerifyLicenseDir
MSI (c) (4C:98) [13:21:11:484]: Note: 1: 2205 2: 3: ActionText
Action 13:21:11: VerifyLicenseDir.
Action start 13:21:11: VerifyLicenseDir.
MSI (c) (4C:E8) [13:21:11:500]: Invoking remote custom action. DLL:
C:\... Entrypoint: VerifyLicenseDir
MSI (c) (4C:A4) [13:21:11:500]: Cloaking enabled.
MSI (c) (4C:A4) [13:21:11:500]: Attempting to enable all disabled
priveleges before calling Install on Server
MSI (c) (4C:A4) [13:21:11:500]: Connected to service for CA interface.
MSI (c) (4C!C0) [13:21:11:625]: PROPERTY CHANGE: Modifying NIDPATH
property. ...
MSI (c) (4C!C0) [13:21:11:625]: PROPERTY CHANGE: Modifying FIDPATH
property. ...
Action ended 13:21:11: VerifyLicenseDir. Return value 1.
Any thoughts?
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, April 26, 2007 12:42 PM
To: [EMAIL PROTECTED]; WiX-users@lists.sourceforge.net
Subject: Re: [WiX-users] Logging in a custom action
Thanks, that looks like what I wanted.
I'm having trouble linking everything correctly though, and I get a ton
of errors in wcautil.h, like
"E:\Program Files\WiX\sdk\inc\wcautil.h(48): error C2065: '__in' :
undeclared identifier"
And
"E:\Program Files\WiX\sdk\inc\wcautil.h(48): error C2182:
'WcaGlobalInitialize' : illegal use of type 'void'"
I've tried to include dutil.lib and wcautil.lib. Is there something
else that needs to be configured to use wcautil.lib (specifically
WcaLog)?
-------------------------------------------------------------------------
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