That doesn't seem to be the issue. 'dumpbin /EXPORTS WildcaddySetup.dll' shows:
Microsoft (R) COFF/PE Dumper Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file WildcaddySetup.dll
File Type: DLL
Section contains the following exports for WildcaddySetup.dll
00000000 characteristics
4536AFC7 time date stamp Wed Oct 18 15:50:47 2006
0.00 version
1 ordinal base
2 number of functions
2 number of names
ordinal hint RVA name
1 0 00007790 InstallApplicationCertificate
2 1 000077C0 UninstallApplicationCertificate
Summary
3000 .data
4000 .reloc
1000 .rsrc
22000 .text
I have simple exe that is able to LoadLibrary WildcaddySetup.dll and
GetProcAddress and call both of these functions without any problems. I also
tried moving the CustomAction dll to <File> and then running the custom action
after InstallFiles. That doesn't seem to work either.
Jeff
-----Original Message-----
From: Arnette, Bill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 2:41 PM
To: Jeff Jones (HS); [email protected]
Subject: RE: [WiX-users] CustomAction not being called
Make sure that is the entry point of the DLL. An exported __stdcall function
is actually decorated to be [EMAIL PROTECTED] so try setting DllEntry to [EMAIL
PROTECTED] If that works, you can alias the export with the with
/EXPORT:[EMAIL PROTECTED]
option on the linker command line.
Use:
dumpbin /EXPORTS wildcaddysetup.dll
To see the decorated exported DLL entry point names.
Bill
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeff Jones
(HS)
Sent: Wednesday, October 18, 2006 4:13 PM
To: [email protected]
Subject: [WiX-users] CustomAction not being called
I am trying to run a custom action. Right now that custom
action just returns ERROR_SUCCESS but every invocation fails without even
loading the dll.
Here is the log:
Action start 10:58:35: InstallCert.
MSI (s) (C4:14) [10:58:35:078]: Creating MSIHANDLE (1) of type
790542 for thread 2836
MSI (s) (C4:04) [10:58:35:078]: Invoking remote custom action.
DLL: C:\WINDOWS\Installer\MSI3EB5.tmp, Entrypoint:
InstallApplicationCertificate
MSI (s) (C4:BC) [10:58:35:078]: Generating random cookie.
MSI (s) (C4:BC) [10:58:35:078]: Created Custom Action Server with PID
2476 (0x9AC).
MSI (s) (C4:38) [10:58:35:109]: Running as a service.
MSI (s) (C4:38) [10:58:35:125]: Hello, I'm your 32bit Impersonated
custom action server.
MSI (s) (C4:04) [10:58:35:125]: Closing MSIHANDLE (1) of type
790542 for thread 2836
Action ended 10:58:35: InstallCert. Return value 3.
I have verified the DLL has the appropriate export and here are the
related WIX tags:
<CustomAction Id='InstallCert'
BinaryKey='WildcaddySetup'
DllEntry='InstallApplicationCertificate'
Return='check' />
<InstallExecuteSequence>
<Custom Action='InstallCert' After='InstallFinalize' />
</InstallExecuteSequence>
<Binary Id='WildcaddySetup'
SourceFile='$(var.FileRoot)\applications\wildcaddy\wildcaddysetup.dll'
/>
Anyone have any idea what I might be doing wrong? What does "Return
value 3" mean? Is it ERROR_PATH_NOT_FOUND? If so, shouldn't the Binary tag
setup the correct temporary path?
Jeff
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users