“Installation Failed” when installing Microsoft Windows SDK 7.1

0

3

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.

Sepideh Abadpour

Posted 2015-09-08T21:24:41.437

Reputation: 273

click on "View log" and share the log file. – magicandre1981 – 2015-09-09T04:27:06.327

@magicandre1981 I've done what you said – Sepideh Abadpour – 2015-09-09T06:27:14.353

The file you shared isn’t public. – Daniel B – 2015-09-09T06:39:06.587

@DanielB Is this OK now? – Sepideh Abadpour – 2015-09-09T06:47:29.483

Yes. Funny how Google Drive thinks it’s an MP3 file. :D – Daniel B – 2015-09-09T06:57:44.250

Oh yeah, you already have a supported compiler installed because you have VS2010. – Daniel B – 2015-09-09T07:01:08.010

@sepideh Are you sure, during the installation of MS Visual Studio 2010 ultimate, the setup wizard has "x64 Compilers and Tools" option enabled/checked ?? – Ĭsααc tիε βöss – 2015-09-09T11:05:27.287

@Ĭsααctիεβöss well I've installed VS2010 months ago but I think I always check all of the features to be installed also as seen in this picture as seen in this picture I have Microsoft Visual Studio C++ 2010(version = 10.0.30319) installed on my computer but because the version is equal to 10.0.30319 and not greater than 10.0.30319, I didn't think that the problem might be this according to How do I install Microsoft Windows SDK 7.1?

– Sepideh Abadpour – 2015-09-09T14:00:17.953

Answers

1

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

Daniel B

Posted 2015-09-08T21:24:41.437

Reputation: 40 502

Regarding my other question and the fact that I have installed JDK, and I have VS2010 as a newer version of the supported compilers, I will have no problem in using MATLAB Product Family and Simulink Product Family and there's no need to uninstall VS 2010 and install SDK and then reinstall VS2010. Right?

– Sepideh Abadpour – 2015-09-09T08:28:31.683

so why does matlab2013b produce the following error after installation? Because I've been struggling with this issue for about 1 year. Whenever I wanted to process MEX-files with matlab, I had to borrow my friends' laptop. This time I want to know the cause and solve the problem forever. So there's no action needed? Won't I have problem in using Matlab Features in the future if I don't install SDK7.1? (regarding that I have a newer version of it as VS2010)

– Sepideh Abadpour – 2015-09-09T08:36:07.743

1It’s not an error message (as far as I can tell) and it says “may”. I don’t have MATLAB, so I can’t help you with it. In this case, the Windows SDK is merely a means to get C++ compilers, which you already have. If MATLAB won’t work, you should contact their support. – Daniel B – 2015-09-09T08:41:53.137

so for the time being no further action is needed – Sepideh Abadpour – 2015-09-09T08:43:38.577

Just one more question! As you see in the picture I have VC++ 2010 x64 Redistributable installed on my device but not VC++ 2010 x86 Redistributable. Should I install that seperately? I think they both are installed when installing VS2010 but I don't now why it is not installed on my device regarding the fact that I always check up all the options when installing VS2010? Anyway, maybe they have been uninstalled when uninstalling other programs in the computer!

– Sepideh Abadpour – 2015-09-09T14:10:15.427

If a program requires a redistributable, it will install it. Well, it should, anyway. It won’t harm to install them by hand, but it’s usually not required. – Daniel B – 2015-09-09T14:25:41.840