Looks like it.  I had a #pragma in there similar to the one in the
sample at http://www.tramontana.co.hu/wix/lesson3.php#3.3 (#pragma
comment(linker, "/EXPORT:[EMAIL PROTECTED]")), but I tried adding a .def
file in addition to that-still nothing.

When I check the verbose log, I don't even see the installer attempting
to call the custom action.  Shouldn't it at least show a failure if it
can't be found? 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob
Hamflett
Sent: Thursday, March 22, 2007 10:01 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] simple custom action DLL-not being called?

Is the entry point exposed properly?  Either through a definition file,
or I think the other way is through a pragma.

Rob

Chris Bardon wrote:
> I'm trying to create a custom DLL that sets an installer property that

> the user can then modify, so I tried starting with a simple example:
>  
> extern "C" UINT __stdcall TestFn(MSIHANDLE hInstall) {
>       MsiSetProperty(hInstall,TEXT("AGENTID"),TEXT("AgentID from
DLL"));
>       return ERROR_SUCCESS;
> }
> 
> I can compile/link the DLL just fine, and then I refer to it in my Wix

> source like so:
> 
> <Binary Id="TestCA" SourceFile="..\$bin\CustomActionDLL.dll" /> 
> <CustomAction Id="TestCustom" BinaryKey="TestCA" DllEntry="TestFn"
> Return="check" Execute="immediate" />
> <InstallExecuteSequence>
>       <RemoveExistingProducts After='InstallFinalize' />
>       <Custom Action="TestCustom" After="ValidateProductID"/> 
> </InstallExecuteSequence>
> 
> When I run the installer though, the property doesn't seem to be set 
> by the action, and if I check the trace, nothing in the log seems to 
> even indicate that the custom action ran.  Is there something else 
> that I need to do to get a custom DLL to be called?
> 
> Thanks,
> 
> Chris
> 
> 
>  
> 
> 
> ----------------------------------------------------------------------
> --- Take Surveys. Earn Cash. Influence the Future of IT Join 
> SourceForge.net's Techsay panel and you'll get the chance to share 
> your opinions on IT & business topics through brief surveys-and earn 
> cash 
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV
> DEV


------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to