InstallShield has such support and it would be useful if WiX did also.  
Basically there is a custom table that you can use to describe  dll, exported 
function name,  arguments and return and map them to/from constants and 
properties.   The engine ( DLLWrap.dll ) is about 200k.
   
  The dll is redistributed in many IS packages and could easily be ripped and 
consumed if you weren't particularly worried about whether this is legal or 
not.  ( It wouldn't be the first time I saw third party bits repurposed around 
here. )
  

Richard <[EMAIL PROTECTED]> wrote:
  
In article <[EMAIL PROTECTED]>,
ACKH 
writes:

> I have a simple dll that contains a function with two parameters. Now I
> would like to call this function in a Wix custom action. Unfortunately
> MsiGetProperty is not used inside that function and it is not possible to
> adapt the dll accordingly.

When you say "it is not possible to adapt the dll accordingly", do you
mean that you can't add any code to that DLL?

When you call a custom action in a DLL, Windows Installer assumes that
the DLL itself can be loaded without any additional work on deploying
dependencies. If the DLL has additional dependencies then you need to
manage that yourself somehow. For DLLs with complex dependencies, the
easiest approach is to have the custom action call a function in a DLL
installed with the product and have the dependent DLLs installed and
accessible by the custom action DLL when it is called.

So if you were to write a CA DLL that has a dependency on your DLL
containing the function you describe above, the DLL with the function
needs to be accessible by the CA DLL, or your custom action will fail
since LoadLibrary will fail on the CA DLL.

Windows Installer doesn't provide any mechanism for calling functions
in a DLL other than the custom action mechanism.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download


Legalize Adulthood! 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to