简体   繁体   English

为客户部署哪个 msvcp100.dll/msvcr100.dll?

[英]Which msvcp100.dll/msvcr100.dll to deploy for customers?

With my product I have deployed specific versions of msvcp100.dll and msvcr100.dll that also belong to a redistribution package.在我的产品中,我部署了特定版本的 msvcp100.dll 和 msvcr100.dll,它们也属于再分发包。 To be more precise, I use them from my directory C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\redist\\x86\\Microsoft.VC100.CRT .更准确地说,我从我的目录C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\redist\\x86\\Microsoft.VC100.CRT I just put these dlls into the installation directory of my software.我只是将这些dll放入我的软件的安装目录中。 And yes, my software is compiled as x86 and with Visual Studio 2010.是的,我的软件编译为 x86 并使用 Visual Studio 2010。

Those work fine on my machine.这些在我的机器上工作正常。 However, I see that some customers get errors that can be solved by removing those files and manually installing the Visual Studio 2010 redistributables with the online installer from Microsoft.但是,我发现有些客户遇到的错误可以通过删除这些文件并使用 Microsoft 的在线安装程序手动安装 Visual Studio 2010 可再发行组件来解决。 The errors will be of the form:错误将采用以下形式:

This application has failed to start because MSVCR100.dll was not found.此应用程序无法启动,因为未找到 MSVCR100.dll。 Re-installing the application may fix this problem.重新安装应用程序可能会解决此问题。

I thought that msvcp100.dll and msvcr100.dll are in some kind unique but there seem to be different version to be out there.我认为 msvcp100.dll 和 msvcr100.dll 是某种独特的,但似乎有不同的版本。 How should I deploy these files to my customers such that it works for all of them?我应该如何将这些文件部署给我的客户以使其适用于所有客户? If this is not possible, what would be a good way to deploy these files?如果这是不可能的,那么部署这些文件的好方法是什么?

这取决于操作系统版本和体系结构,因此最好在安装程序中添加 Microsoft Visual C++ Redistributable Package 作为先决条件,以便安装程序可以检查系统是否确实需要,然后相应地安装/跳过它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM