Is drvutil.dll your own DLL or are you using a third party dll?   Googling the 
name seems to imply that it might be from an APC SDK and in that case it's very 
unlikely to follow Type 1 standard call declaration.    You would have to 
create a wrapper CA that invoke the APC DLL and pass the result back to an MSI 
property.  InstallShield has this built in as a generic `standard dll` story 
but WiX does not.   If it is your CA then I assume you are already exporting 
your DLLfx per Type 1 specs.

Brian Simoneau <[EMAIL PROTECTED]> wrote:
  The installer extracts the dll to the temporary location in order to
call the custom action and then deletes the temp file. The actual error
is in calling the custom action or in the custom action itself.

-Brian Simoneau 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anidil
Sent: Thursday, October 11, 2007 8:24 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom action to call a method in DLL


I have a customaction as follows which invokes the "IsUPSPresent"
function
inside drvutil.dll.


Id="caIsUPSPresent"
DllEntry="IsUPSPresent" Return="check" />





As i see in the verbose MSI logs, installer seems to have accessed "DLL:
C:\Windows\Installer\MSI8342.tmp" instead of the actual dll specified,
and
the MSI end up in install failure.

Am i missing somethig here?
I have searched for the file "C:\Windows\Installer\MSI8342.tmp" but
could
find anything as such.

Here are the log snippet:

MSI (s) (B4:84) [17:39:25:363]: Doing action: caIsUPSPresent
Action start 17:39:25: caIsUPSPresent.
MSI (s) (B4:60) [17:39:25:379]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSI8342.tmp, Entrypoint: IsUPSPresent
MSI (s) (B4:1C) [17:39:25:379]: Generating random cookie.
MSI (s) (B4:1C) [17:39:25:394]: Created Custom Action Server with PID
2212
(0x8A4).
MSI (s) (B4:48) [17:39:25:488]: Running as a service.
MSI (s) (B4:EC) [17:39:25:737]: Hello, I'm your 32bit Impersonated
custom
action server.
Action ended 17:39:25: caIsUPSPresent. Return value 3.
Action ended 17:39:25: INSTALL. Return value 3.

-- 
View this message in context:
http://www.nabble.com/Custom-action-to-call-a-method-in-DLL-tf4606851.ht
ml#a13154574
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


       
---------------------------------
Pinpoint customers who are looking for what you sell. 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to