It is recommended that custom action DLLs have the fewest dependencies
possible, to avoid problems where the dependencies are not already present
on the target machine.

 

You should try to eliminate use of the CRT, if possible, and statically link
with it to remove the dependency on the CRT DLLs.

 

The WiX custom actions should probably take the lead here and replace calls
to CRT functions with equivalent Windows functions, then replace the
CRT-supplied entry point function with a stub. This could well reduce the
size of the custom action DLLs.

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew
Kowalski
Sent: 05 December 2006 19:42
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] VS2005 C++ and Custom Actions

 

I've created a simple C++ .dll in VS2005 to do some checks for me during the
install after a user has selected an installation folder. The problem I am
having is with the VS2005 C++ runtime (msvcp80.dll). The compiled .dll
apparently needs to have the runtime installed otherwise the installation
fails when attempting to execute the custom action ("Dependent Assembly
Microsoft.VC80.CRT could not be found"). Is there any way to get around
having to install the redistributable package (vcredist_x86.exe) before
running my install?

 

Any help would be greatly appreciated!

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