CRT Runtime Policy Merge Modules - Visual Studio 2008 Package and Deployment

Printer-friendly version

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.

4.75
Average: 4.8 (4 votes)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Posted On : January 5, 2010 - 21:05
Anonymous (not verified)

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

Posted On : January 22, 2010 - 16:03
Alain Labrie's picture
Offline
Last seen: 10 weeks 3 days ago
 Brown Belt
Joined: Oct 9 2009
Points: 2656

Why do we need to include the debug version?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.