DEV Community

Lalit Kumar
Lalit Kumar

Posted on

A newer version of Microsoft visual C++ 2010 Redistributable has been detected on the machine.

Where?
“A newer version of Microsoft Visual C++ 2010 redistributable has been detected on the machines'' error occurs at the installation of software that installs Visual C++ 2010 or installation of Visual C++ 2010. Microsoft Visual C++ 2010 redistributable includes CRT, standard C++, MFC, ATL, OpenMP and MSDIA libraries.


title: "A newer version of Microsoft visual C++ 2010 Redistributable has been detected on the machine."
tags: cpp, windows

canonical_url: https://kodlogs.com/blog/101/version-microsoft-visual-redistributable-detected-machine

Why?
The installation shows this error due to the genuine presence of a higher version of the redistributable on the system. You’re getting this error even when it isn’t installed on the machine, why is it happening even when it is not installed on the machine? What’s the reason behind it? There is a possibility that it had been installed at some point in the past. So, there may be a remaining file of the installation that can cause unexpected behaviour.

How?
There are ways of resolving this problem given below:
Uninstall any later updates by going to programs and features in the control panel. Check the installation, if it is still failing then follow the next step.
Check the logs. For a more detailed examination, enable verbose. If you don’t know how to? Don’t worry Microsoft got you here. Just follow the instructions http://support.microsoft.com/kb/223300
Find the log formed by verbose, it is probably in ‘%LOCALAPPDATA%\temp’. File name will be as “Microsoft Visual C++ 2010 x86 Redistributable Setup_.html”

There will be some lines which are responsible for indicating a newer version installed. Just go to the registry and rename it or delete it.

Sample Log Excerpt

…

BlockIf: A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine....
[7/10/2014, 9:44:0]A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine.
[7/10/2014, 9:44:0]evaluating BlockIf:

[7/10/2014, 9:44:0] And: evaluating...
[7/10/2014, 9:44:0] Equals: evaluating...
[7/10/2014, 9:44:0]Current Operation value is Installing

[7/10/2014, 9:44:0] Equals evaluated to true

[7/10/2014, 9:44:0] LessThan: evaluating...
[7/10/2014, 9:44:0]RegKeyValue: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\x86\Bld contains '40219'
[7/10/2014, 9:44:0]all numeric characters - canonicalizing

[7/10/2014, 9:44:0] LessThan evaluated to true

[7/10/2014, 9:44:0] And evaluated to true

[7/10/2014, 9:44:0] BlockIf evaluated to true

…
Enter fullscreen mode Exit fullscreen mode

Alt Text

Note:
If you edit the registry wrong then you can cause some serious problems and you have to reinstall OS.

Precaution
Backup the registry before any modification.

Top comments (0)