In article <[EMAIL PROTECTED]>, ACKH <[EMAIL PROTECTED]> 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 <http://www.xmission.com/~legalize/book/download/index.html> Legalize Adulthood! <http://blogs.xmission.com/legalize/> ------------------------------------------------------------------------- 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