Re: [WiX-users] Easy WiX way for a custom action to call multiple utility DLLs?

2007-10-26 Thread Karim MacDonald
Rob Mensching-5 wrote: > > I'm admittedly hardcore about this but IMHO custom actions should be > native code DLLs that have as few dependencies as physically possible > (certainly should have no dependency on WTL). Statically linking the > CRT then use as few DLLs from the system provides t

Re: [WiX-users] Easy WiX way for a custom action to call multiple utility DLLs?

2007-10-25 Thread Rob Mensching
I'm admittedly hardcore about this but IMHO custom actions should be native code DLLs that have as few dependencies as physically possible (certainly should have no dependency on WTL). Statically linking the CRT then use as few DLLs from the system provides the highest probability that the cod

Re: [WiX-users] Easy WiX way for a custom action to call multiple utility DLLs?

2007-10-25 Thread Aris Green
In regards to Rob Mensching's comment, > >Statically link. That's what all the WiX CustomActions do and while it >makes the DLLs a bit bigger it totally minimizes the number of >dependencies (especially nasty ones like the Win32 SxS CRT junk). Static linking definitely seems like the right thing

Re: [WiX-users] Easy WiX way for a custom action to call multiple utility DLLs?

2007-10-25 Thread Rob Mensching
Aris Green wrote: > > > A question, how do VC 2005 CA's requiring the C++ CRT Dll work on > Vista? Any > CRT using C++/CLI require a DLL link to the CRT. > Statically link. That's what all the WiX CustomActions do and while it makes the DLLs a bit bigger it totally minimizes the number of dep

Re: [WiX-users] Easy WiX way for a custom action to call multiple utility DLLs?

2007-10-25 Thread Aris Green
Try embedding the other DLL as a custom resource using the .rc file. Extract the DLL first thing when the CA is called. Use delayload linker option or LoadLibrary to call the function in the extracted DLL. I've done this before. A question, how do VC 2005 CA's requiring the C++ CRT Dll work on V

[WiX-users] Easy WiX way for a custom action to call multiple utility DLLs?

2007-10-24 Thread Karim MacDonald
If my CA in MyCA.dll needs to call a fn in MyUtils.dll then I'm currently expecting to have to write a separate pair of CAs that pull MyUtils.dll out of the Binary table and then delete it at end-of-setup. InstallShield provides just such a handy pair of Custom Actions (ISSETUPFILESEXTRACT & co.),