CRT Runtime Policy Merge Modules - Visual Studio 2008 Package and Deployment
A tip that may help Windows developers in their Visual Studio Package and Deployment projects.
As we all know by now, we must include the CRT Runtime (C++ Runtime) in our MSI installer.
When you add your CRT Merge modules (for debug and release), do not forget to add the corresponding policy merge modules. If you forget these, the CRT Runtime will not install correctly and you will experience a variety of error messages.
Examples of policy files:
policy_9_0_Microsoft_VC90_CRT_x86.msm
policy_9_0_Microsoft_VC90_DebugCRT_x86.msm
These policy files are "sometimes" automatically added as a dependency for you, but to be on the safe side double check that they are listed in the Solution Explorer for your Package and Deployment project. This same requirement for policy merge modules applies to MFC,ATL, etc.
Comments
Bless you, BrianDevArch! You just saved me a ton of time. You can chase your tail on this one for a long time, as evidenced by the huge thread over at http://channel9.msdn.com/forums/TechOff/22266-Side-by-side-screwup/.
Why do we need to include the debug version?
Post new comment