且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C#缺少MSVCR100.dll

更新时间:2023-02-22 15:27:40

此以下链接指向正确的下载量为MSVCRT100安装程序。这可能是您希望客户在安装您的应用程序之前先运行什么。这将在适当的正确的目录,这样所有应用程序都可以使用它安装MSVCRT DLL文件。

This links below point to the proper downloads for the MSVCRT100 installer. This is likely what you want your customers to run before installing your app. This will properly install the MSVCRT DLLs in the proper directory such that all applications can use it.

Microsoft的Visual C ++ 2010可再发行组件包(x86)(可能是您所需要的32位和64位操作系统)

Microsoft Visual C++ 2010 Redistributable Package (x86) (probably what you need for 32-bit and 64-bit os)

微软的Visual C ++ 2010再发行组件包(x64)的(仅当您应用程序本身是64位的)

Microsoft Visual C++ 2010 Redistributable Package (x64) (Only if your app itself is 64-bit)

如果你确实想通过自己的MSI中的合并模块安装MSVCRT100 DLL文件 - 您可以将您的MSI链接到是的MSM位于x86版本的C:\program files\common files\merge模块目录(假设你有Visual Studio 2010的安装)

If you actually want to install the MSVCRT100 DLLs through a merge module within your own MSI - you can link your MSI to the MSMs that are located in the x86 version your "c:\program files\common files\merge modules" directory" (Assuming you have Visual Studio 2010 installed).

C:\Program Files (x86)\Common Files\Merge Modules>dir *CRT*.msm
 Volume in drive C has no label.
 Volume Serial Number is 60A4-1718

 Directory of C:\Program Files (x86)\Common Files\Merge Modules

04/22/2011  01:18 PM           584,192 Microsoft_VC100_CRT_x64.msm
04/22/2011  01:41 PM           571,904 Microsoft_VC100_CRT_x86.msm  <-- This is likely the MSM you want if your app is 32-bit.
04/22/2011  01:14 PM           847,360 Microsoft_VC100_DebugCRT_x64.msm
04/22/2011  01:39 PM           801,792 Microsoft_VC100_DebugCRT_x86.msm

另外两种选择:
,而不要照搬MSVCRT100.dll到系统目录下,将其复制到你都争相推出的EXE应用程序的目录取决于此DLL。这是不推荐,但不会打破运行其他应用程序的风险。

Two other alternatives: Instead of copying MSVCRT100.dll into a system directory, copy it into the directory of the EXE app you are trying to launch that depends on this DLL. This isn't recommended, but won't run the risk of breaking other apps.

另一种选择。如果你确实有源代码,您试图启动EXE,你完全可以只通过静态链接到它绕过所有这种安装msvcrt100.dll的噪音。在Visual Studio中,它在在C / C ++项目的属性格式对话框中的选项(代码生成标签下)。从多线程DLL更改运行时库只是多线程。这增加了/ MT编译器开关。

Another alternative. If you actually have the source code to the EXE that you are trying to launch, you can completely bypass all of this "install msvcrt100.dll" noise by just statically linking to it. In visual studio, it's the option in the project's propery dialog under C/C++ (under the Code Generation tab). Change "runtime library" from "Multi-threaded Dll" to just "Multi-threaded". This adds the /MT compiler switch.