Trevor
Trevor

Reputation: 16116

msvcrt.dll issue when installing Microsoft Visual C++ 2010 Redistributable on windows server 2003

When I attempt to install Microsoft Visual C++ 2010 Redistributable I get the following error.

enter image description here

I have an updated msvcrt.dll to replace the current one with but every time I delete/replace the old dll windows re adds the old one into the system32 folder again.

Upvotes: 2

Views: 1881

Answers (2)

cha
cha

Reputation: 10411

Got similar error. Fixed it by restarting the server before the install.

Upvotes: 1

0xC0000022L
0xC0000022L

Reputation: 21279

It would be useful to know the OS version you are using. Could be Windows 2000 or XP (my guess from the screenshot, but could be over RDP as well).

When msvcrt.dll became a first-class citizen (i.e. a system DLL) some time during the lifetime of XP, some changes were also made to it. Incompatible changes, I should add. Example: if you built a program against the VS CRT in former times (e.g. using the WDK/DDK) you could rely on the fact that it works starting with the least common denominator of existing msvcrt.dll versions. However, at some point MS decided that programs built to target, say, XP could rely on the new functionality that was snuck into newer versions of msvcrt.dll. Hence the observed incompatibility.

One way to make it work could be to add a file msvcrt.dll.local in the same folder or - failing that - to create a shim that enforced your intended behavior. See here.

Upvotes: 3

Related Questions