发布Microsoft Visual C++ 2008程序的部署问题
2009-08-30 17:46
579 查看
1、在你将要发布的程序(以下简称A)的Release目录下找到“A.exe.intermediate.manifest”并用记事本打开,假设如下:
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level='asInvoker' uiAccess='false' />
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC90.CRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC90.MFC' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>
注意红色高亮部分!
2、在%Microsoft Visual Studio 9.0_HOME%/VC/redist/x86目录下分别找到Microsoft.VC90.CRT和Microsoft.VC90.MFC,并把这两个文件夹拷贝到A程序的发布根目录下;
3、并分别打开文件夹里面的Microsoft.VC90.CRT.manifest和Microsoft.VC90.MFC.manifest文件;
4、你需要确定这两个文件里面保存的版本信息和你程序依赖的版本信息匹配,Microsoft.VC90.CRT.manifest里面的版本信息大版本号一定要一致,小版本号一定要等于或者大于你程序依赖的CRT的小版本号。比如上例中,我们的程序A是依赖于CRT 9.0.21022.8,而我们的Microsoft.VC90.CRT.manifest文件描述的版本是9.0.30729.1,这样是可以的;而如果是8.0.30729.1就会有问题。如果大版本号一样,小版本号不一致的话,一个比较简单的方案就是修改程序A的manifest文件,使其互相匹配就可以了!
That's it !!!
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level='asInvoker' uiAccess='false' />
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC90.CRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC90.MFC' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>
注意红色高亮部分!
2、在%Microsoft Visual Studio 9.0_HOME%/VC/redist/x86目录下分别找到Microsoft.VC90.CRT和Microsoft.VC90.MFC,并把这两个文件夹拷贝到A程序的发布根目录下;
3、并分别打开文件夹里面的Microsoft.VC90.CRT.manifest和Microsoft.VC90.MFC.manifest文件;
4、你需要确定这两个文件里面保存的版本信息和你程序依赖的版本信息匹配,Microsoft.VC90.CRT.manifest里面的版本信息大版本号一定要一致,小版本号一定要等于或者大于你程序依赖的CRT的小版本号。比如上例中,我们的程序A是依赖于CRT 9.0.21022.8,而我们的Microsoft.VC90.CRT.manifest文件描述的版本是9.0.30729.1,这样是可以的;而如果是8.0.30729.1就会有问题。如果大版本号一样,小版本号不一致的话,一个比较简单的方案就是修改程序A的manifest文件,使其互相匹配就可以了!
That's it !!!
相关文章推荐
- Microsoft Visual C++ 2008 发布程序的部署问题
- Microsoft Visual C++ 2008 发布程序的部署问题(转)
- Microsoft Visual C++ 2008 发布程序的部署问题
- Microsoft Visual C++ 2008 发布程序的部署问题
- Microsoft Visual C++ 2008 发布程序的部署问题
- Microsoft Visual C++ 2008 发布程序的部署问题
- Microsoft Visual C++ 程序的部署
- VC 2008 发布程序部署问题
- Qt生成并发布程序在别的机器上运行 发生Microsoft Visual C++ Runtime Library 错误
- 读书札记:#include&quot;stdafx.h&quot; 问题的解决--Microsoft Visual Studio 2008之C++
- Qt生成并发布程序在别的机器上运行 发生Microsoft Visual C++ Runtime Library 错误
- Microsoft Visual Studio 开发的C++程序软件发布相关事宜
- Microsoft Visual C++ 程序的部署方法
- Build SWIG with Microsoft Visual C++ 2008 Express
- “检查 Microsoft Visual Studio 2008 的早期版本”失败的问题解决方法
- windows下pip安装库遇到了Microsoft Visual C++ 9.0 is required的问题
- Microsoft Visual C++ 2005 Redistributable不能删除旧版本的问题
- Creating a PHP Extension for Windows using Microsoft Visual C++ 2008
- python 安装库文件时出现 Microsoft Visual C++ 14.0 is required问题
- MATLAB 安装 问题 配置Microsoft Visual C++ 2008 Redistributable 的解决方法