包括VS2005中的MS C ++运行时生成的MSI [英] Including MS C++ runtime in VS2005 generated MSI

查看:144
本文介绍了包括VS2005中的MS C ++运行时生成的MSI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目取决于特定版本的MSVCR80.dll(MS Visual C运行时),我遇到了一些问题,根据具体的系统配置,我的应用程序并不总是得到该文件的正确版本。这是一个垃圾拍摄,找到一个文件与该名称需要什么路径,并不总是正确的...



有没有办法,在VS2005中创建部署项目时,要确保我的应用程序将永远使用我提供的运行时当我将运行时文件添加到项目中时,它会询问是否创建一个合并模块,但不能确定该做什么。而且不管创造一个,问题依然存在。

解决方案

Martin Richter写了一篇关于CodeProject的文章:
< a href =http://www.codeproject.com/KB/cpp/PrivateAssemblyProjects.aspx =nofollow noreferrer>使用私有MFC,ATL和CRT组件轻松创建项目



此解决方案不依赖于您的MSI软件包,而是依赖于使用CRT文件的应用程序。


I've got a project that depends on a particular version of MSVCR80.dll (the MS Visual C Runtime) and I'm running into problems where, depending on the particular system configuration, my app doesn't always get the right version of that file. It's been a bit of a crap shoot as to what path it takes to find a file with that name, and it's not always right...

Is there a way, when creating a Deployment Project in VS2005, to ensure that my app will always use the runtime that I provided?? When I add the runtime file to the project, it asks about creating a merge module...but not really sure what that does. And regardless of creating one, the issue remains.

解决方案

Martin Richter wrote an article about that on CodeProject: Create projects easily with private MFC, ATL and CRT assemblies

This solution does not rely on your MSI packages but on the application that uses the CRT files.

这篇关于包括VS2005中的MS C ++运行时生成的MSI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆