As far as I am aware, the MSVCRxxx.dlls
are in %SystemRoot%\System32
(usually C:\Windows\System32
).
The xxx refers to the version of the MS Visual C Runtime
(hence MSVCR...)
However, the complication seems to be that the xxx version is not the same as the two digits of the year "version".
For example, Visual C Runtime 2013 yields MSVCR120.dll
and "...Runtime 2012" yields MSVCR110.dll
. And then Microsoft packages these as vcredist_x86.exe
or vcredist_x64.exe
, seemingly irrespective of the xxx version or the Visual Studio version number (2012, 2013 etc) - confused? You have every right to be!
So, firstly, you need to determine whether you need 32 bit
, 64 bit
or even both (some PHP distributions apparently do need both), then download the relevant vcredist... for the bits AND for the Visual Studio version. As far as I can tell, the only way to tell which vcredist... you have is to start to install it. Recent versions give an intro screen that quotes the Visual Studio version and the xxx version. I have renamed by vcredists
to something like vcredist_x64_2012_V11.exe
.
[EDIT] Forgot to add earlier that if you are simply looking to "install" the missing DLL (as opposed to resolve some bigger set of issues), then you probably won't do any harm by simply installing the relevant vcredist for your architecture (32 bit, 64 bit) and "missing" version.