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=DEVDEV


-------------------------------------------------------------------------
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