Solved by following Installation of Visual Studio 2010 (any edition) installs only 2 files in the C++ headers directory
- Uninstall Visual Studio 2010.
- Uninstall Visual Studio 2010 SP1 (despite the warning it gives).
- Open Registry Editor (
regedit
). - Search for keys named
PaddedVersion
- Remove any parent keys
VisualStudio\10.0\VC\Libraries
, or similar (note the version number10.0
, which corresponds to2010
). Delete all of these registry paths. The search for thePaddedVersion
key is just to ease up this search. - Install Visual Studio 2010.