Windows – “Installation Failed” when installing Microsoft Windows SDK 7.1

.net frameworkinstallationMATLABvisual studio 2010windows 7

The operating system of my laptop is Windows7x64. Whenever I install MatlabR2013b on it, this message is shown at the end of installation process:

Your installation may require additional configuration steps.

1.The following products require a supported compiler :

MATLAB Compiler 5.0

MATLAB Builder NE 4.2

MATLAB Builder JA 2.3

MATLAB Builder EX 2.4

Simulink Coder 8.5

xPC Target 5.5

MATLAB Coder 2.5

2.To configure Real-Time Windows Target you must type rtwintgt -setup in a MATLAB command window.

About the first part of the message above, I viewed the provided link and I understood that I should install Microsoft Windows SDK 7.1 and Java Development Kit (JDK) 1.7 for the above components to be executable.
There's no problem with JDK installation but whenever I try to install SDK downloaded from here, it encounters the following error:

enter image description here

A problem occurred while installing selected Windows SDK components.

Installation of the "Microsoft Windows SDK for Windows 7" product has
reported the following error: Fatal error during installation.

Please attempt to resolve the problem and then start Windows SDK setup
again. If you continue to have problems with this issue, please visit
the SDK team support page at
http://go.microsoft.com/fwlink/?LinkId=130245.

Click the View Log button to review the installation log.

To exit, click Finish.

What is the problem and what should I do?
I have searched a little but I have neither Microsoft Visual Studio C++ 2010 SP1 (version greater than 10.0.30319) nor .NET Framework 4.5 (also bundled with Visual Studio 2012 or later) installed on my computer

enter image description here

Then what do you think my problem is?
What should I do to fix it?

About the second part I have asked another question.


I tried to install it again. This time it produced the following error:
enter image description here

I've a shared the log file here. It's a text file but it is shown as an audio file when downloading. Please open it with Notepad.

Best Answer

I’ll just “quote” this answer on Stack Overflow. There are other relevant answers next to it, too.

Too clarify: In your case, there’s an “affected” version of the VC++ 2010 x64 Redistributable installed.


This is a known issue http://support.microsoft.com/kb/2717426

CAUSE

This issue occurs when you install the Windows 7 SDK on a computer that has a newer version of the Visual C++ 2010 Redistributable installed.

RESOLUTION

To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the Windows 7 SDK. You may have one or more of the following products installed:

  • Microsoft Visual C++ 2010 x86 Redistributable
  • Microsoft Visual C++ 2010 x64 Redistributable

After uninstalling the Microsoft Visual C++ 2010 Redistributable products, you may install the Windows 7 SDK. After installing the Windows 7 SDK, you may then reinstall the newer version of the Visual C++ 2010 Redistributable products, in order to restore the Visual C++ 2010 Redistributable products to their original state.

uninstallation picture

Related Question