I have recently graduated to VS 2015. For reasons explained below, I want to avoid running the VC++ Redistributables installer. I am including the prescribed DLLs in my installer, for an "app local" installation:
MFC140.DLL
concrt140.dll
msvcp140.dll
vccorlib140.dll
vcruntime140.dll
mfc140u.dll
mfcm140u.dll
This seems to work. My app runs when installed thus on a "virgin" PC.
My question is, where do I find
msvcr140.dll
?
It is mentioned here: https://www.visualstudio.com/license-terms/mt228262/. I cannot find it anywhere when searching all directories on a PC where VC Redistributables has been installed. Does it exist? Is Windows concealing it?
Note 1: Why I need to avoid the MS VC++ Redistributables installer:
- It shows up as a separate install in my WiX installer. It is very confusing for my market demographic (consumers).
- When my software is uninstalled, it is also necessary to uninstall VC Redist., which can lead to complications.
- In a couple of instances, there has been some sort of screw-up that has rendered the PC inoperable. I suspect repeated VC Redist installs. What happens is that a Standard User is no longer able to start any programs.
- VC Redist. has bloated my installer from 25MB to 40MB, an extra 15MB. By picking which components I need, I trimmed it by 10 MB.
- WiX code to test for prior versions is complex, arcane and inscrutable.
- Yes, I understand about the benefits of automatic updating of Windows DLLs. However, a PC with out-of-date DLLs is better than a PC that is unusable.
Note 2: I can't do a static link, my app is a mixed bag of Win32 and MFC DLLs, I get linker errors.
It appears that the "msvcr140.dll" is "missing" because of the introduction of the Universal CRT in Visual Studio 2015.
See also this answer and this one.
Looking inside the official merge module located at
Program Files (x86)\Common Files\Merge Modules\Microsoft_VC140_CRT_x64.msm
, the Visual C++ 2015 CRT consists of these files: