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. <Binary Id="drvutil" SourceFile="drvutil.dll"/> <CustomAction BinaryKey="drvutil" Execute="immediate" Id="caIsUPSPresent" DllEntry="IsUPSPresent" Return="check" /> <InstallExecuteSequence> <Custom Action="caIsUPSPresent" After="InstallFiles" /> </InstallExecuteSequence> 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