MATLAB Answers

How do I install Microsoft Windows SDK 7.1?

조회 수: 1,504(최근 30일)
I would like to know the specific steps needed to install Microsoft Windows SDK 7.1.

채택된 답변

MathWorks Support Team
편집: MathWorks Support Team 8 Oct 2020
PREREQUISITE INFORMATION
If any of the following cases is true, see the Troubleshooting section at the bottom before proceeding with the SDK 7.1 installation.
  • Microsoft Visual C++ 2010 SP1 (Express or Professional) installed or Microsoft Visual C++ 2010 redistributable packages (x64 or x86) installed (version greater than 10.0.30319)
  • .NET Framework 4.5 or newer is already installed (also bundled with Visual Studio 2012 or later)
INSTALLING THE WINDOWS SDK 7.1
1. Download Windows SDK for Windows 7 and .NET Framework 4 from Microsoft at:
2. Once the download is complete, run winsdk_web.exe.  Depending on your security settings, you may be prompted by User Account Control (UAC) to allow "making changes to this computer".
3. After a couple of seconds, the Setup Wizard will appear.
4. Click through the wizard, accept the license agreement and do not change any of the installation folders. Make sure that the Installation Option Visual C++ Compilers is selected as shown below:
5. Continue through the wizard to download and install the SDK. Depending on the speed of your Internet connection, this step will take several minutes to an hour or more.
6. The setup wizard finishes.
TROUBLESHOOTING
.NET Framework 4.5 or newer already installed
If you have .NET Framework 4.5, 4.6., 4.7. or 4.8. installed, Windows SDK 7.1 may fail to install. In this case:
  • Uninstall .NET Framework 4.5. (or newer)
  • Install Windows SDK 7.1 using the instructions above.
  • Reinstall .NET Framework 4.5. (or newer)
If SDK 7.1 was already installed, but with a message saying .NET 4 could not be installed due to the presence of .NET 4.5, you may need to uninstall .NET 4.5 first as well and retry.
Visual C++ 2010 SP1 or Visual C++2010 Redistributable already installed
If Visual C++ 2010 Redistributable is already installed, SDK 7.1 may fail to install. In this case:
  • Remove the 2010 Redistributable packages (both x86 and x64). For that, navigate to the windows control panel -> click on "programs" -> click on  "Programs and Features" -> select the required programs to be removed.
  • Install SDK 7.1 using the instructions above.
  • Apply the SDK 7.1 patch.
  • Reinstall 2010 Redistributable packages back, see the following links:
https://www.microsoft.com/en-us/download/details.aspx?id=13523
If you have both Microsoft Visual Studio C++ 2010 SP1 and SDK 7.1 already installed, but are running into various errors during compilation, apply the SDK 7.1 patch to fix the issue.
"ammintrin.h missing" error
This occurs if only SDK 7.1 was installed (without Microsoft Visual C++ 2010 SP1 present on the machine), and then the SDK 7.1 patch is applied.  In this case:
  • Install Visual Studio C++ 2010 (if not already installed).  Either Professional or Express works.
  • Upgrade Visual Studio C++ 2010 to SP1
If issues occur when removing the Visual Studio 2010 redistributable and .NET 4.5 redistributable using "Programs and Features" in the control panel
"Programs and Features" doesn't always do a complete job in uninstalling programs. Please follow the suggestions mentioned in the following link:
The following post addresses the issue that occurs when removing the Visual Studio 2010 and .NET 4.5 redistributable:
If "mex -setup" does not list Microsoft SDK 7.1, even though it is successfully installed in the system: 
Sometimes 'mex -setup' does not list the installed compilers although compiler is installed in the system. This issue is very sporadic in nature and occurs when is no .xml(e.g. mex_C_win64.xml for mingw) file present at 'C:\Users\<username>\AppData\Roaming\MathWorks\MATLAB\<MATLABRELEASEFOLDER>' location. Un-installation of all the instances of Microsoft visual studio and Microsoft C++ redistributables from the system and then installing Microsoft SDK 7.1 in administrator mode does not help here.
A temporary workaround for this issue is to copy the XML file from another machine with the similar setup to the location said above and then run mex -setup.
SUPPORTING LINKS AND INSTRUCTIONS
Installing the SDK 7.1 patch
The SDK 7.1 patch can be download and installed from:
Upgrading Microsoft Visual Studio C++ 2010 to SP1.
Microsoft Visual Studio C++ 2010 SP1 upgrade can be obtained from:
  댓글 수: 14
windy wang
windy wang 7 Jun 2016
Dear MathWorks Support Team: My computer's system is win10, and the version of matlab is R2014a. When I run a file of "lightspeed toolbox", the command window says "错误使用 mex;未找到支持的编译器或 SDK。有关选项,请访问 https://www.mathworks.com/support/requirements/previous-releases.html". Although I follow the index,but I fail to install visual c++ compiler.(I CAN NOT CHECK THE COMPONENT) Please help me with this problem, I would be very grateful. Best Regards

댓글을 달려면 로그인하십시오.

추가 답변(18개)

Andre Silva
Andre Silva 5 Dec 2014
편집: MathWorks Support Team 24 Nov 2020
I have this problem again after following these exact instructions over a year ago. This is what I did to solve it using the latest .NET Framework 4.5.2
1. Uninstall all Visual Studio programs/compilers/redistributables etc.
2. Uninstall all .NET Framework programs
3. Uninstall all Windows SDK packages
4. Install Windows SDK 7.1
4a. As per instructions from here
During installation, under the "Installation Options" menu, UNCHECK the "Visual C++ Compilers" and "Microsoft Visual C++ 2010" components.
Download link:
5. Install .NET Framework 4.5.2
6. Applied the SDK 7.1 Patch
7. Reinstall the Microsoft Visual C++ 2010 redistributable packages.
x64:
x86:
8. Open Matlab, and run through the "mex -setup" steps to check the compilers have been linked with Matlab.
-Notes-
I ended up having the problem of not being able to uninstall the SDK in step 3. Some problem that was documented here.
What I did was I disabled my internet connection and using the new SDK 7.1 ISO downloaded in step 4, I was able to uninstall successfully.
--
Also, from the other mathworks link above, I found it was not possible for me to apply the 7.1 patch without a .NET framework installed. So that is why I recommend step 5 before step 6. Otherwise steps 6 and 7 are verbatim from the link.
Hope this helps someone.
  댓글 수: 2
jongmin
jongmin 29 Nov 2017
Thank you very much. It resolves all the problem in my case!

댓글을 달려면 로그인하십시오.


Jinyu Xie
Jinyu Xie 1 Jul 2017
편집: Walter Roberson 1 Jul 2017
  댓글 수: 1
Jinyu Xie
Jinyu Xie 21 Jul 2017
Here is a copy of the instruction provided by Jeremy J Wong :
"
  1. Uninstall any Visual C++ 2010 Redistributables from the control panel first.
  2. Download the corresponding offline ISO image from the Windows SDK archive.
  3. After mounting the image, open F:\Setup\SDKSetup.exe directly.
"
See "Install Instructions" in the webpage offline ISO image to understand which ISO image to download.

댓글을 달려면 로그인하십시오.


hainingwyx
hainingwyx 13 Mar 2016
hello,I Uninstall .NET Framework 4.5,.NET Framework 4.6,Visual Studio C++ 2010 toVisual Studio C++ 2015,but when I install SDK still can't choose the visual C++ compilers.Then I check files in program files,and delete all file about .Net.Now,I can't run the winsdk_web.exe. Can you give me some advice?
  댓글 수: 1
Aneesh Subrahmanian
Aneesh Subrahmanian 17 Aug 2017
Install .Net Framework 4.0 and then try to run the installation package for SDK 7.1

댓글을 달려면 로그인하십시오.


G. SUMA
G. SUMA 15 Feb 2016
편집: G. SUMA 15 Feb 2016
I tried installing sdk on my windows 8.1. It says installation failed as shown below. Can someone help me with this?

Milan
Milan 11 Mar 2014
Hello, I did your suggestion, first intall .NET framework, than the SDK with the attached patch. I launched Matlab:
mbuild -setup
and I got the following error message: Error: The Microsoft Windows Software Development Kit (SDK) installation is incomplete. Please be sure that the .NET Framework is installed correctly before attempting to reinstall the SDK.
Error using mbuild (line 189) Unable to complete successfully.
I am using R2013b version.
Can you suggest anything to solve the problem?
  댓글 수: 5
Gunjan Dewan
Gunjan Dewan 23 Mar 2016
Hi,
I have been trying to install Windows SDK in my PC. I am facing the exact same problem while installing Windows SDK. I have Windows 8.1 and .NET framework wont uninstall from my computer.
Anyone has a solution to this?

댓글을 달려면 로그인하십시오.


Sina
Sina 20 Mar 2014
Hi
One question regarding * Troubleshooting * :
After accomplishing step 3 I have both 'Visual C++ 2010 Redistributable packages' and 'Microsoft Visual C++ Compilers 2010 SP1 Standard' installed. Then do I really need to reinstall them again as it said in step 4?
  댓글 수: 1
Enkh
Enkh 8 Sep 2014
Hey Sina,
We've updated the answer since then. If the redistributables are already there, and you have everything working, reinstalling them is not necessary.

댓글을 달려면 로그인하십시오.


Satya
Satya 30 Oct 2014
I'm installing the SDK 7.1 patch from the link mentioned above.
The installation seems to be stuck and doesn't go past the 15% mark.
Any suggestion for this?
  댓글 수: 1
Ulzii
Ulzii 31 Oct 2014
Hi. I faced this problem before. But now already solved by this instruction( http://ta.speot.is/2012/04/09/visual-studio-2010-sp1-windows-sdk-7-1-install-order/)

댓글을 달려면 로그인하십시오.


Federico
Federico 25 Nov 2014
편집: Federico 26 Nov 2014
Hi!
I have windows 8.1 and on my computer there are Microsof Visual C++ 2005/2008/2010/2012 (see attached image) In order to install Windows SDK 7.1, first I have to uninstall all these Microsoft Visual C++ installed , then install SDK 7.1 and at the end re-install the all Microsoft Visual C++ unistalled before, it's right?
And if I uninstall all Microsoft Visual C++, I risk to compromise my computer?
  댓글 수: 1
Volker Quetschke
Volker Quetschke 16 May 2015
Microsoft actually has an answer to this problem. The following link describes what to do to install Microsoft Windows SDK 7.1 on Windows 8. The solution worked for me on Windows 8.1 x64:

댓글을 달려면 로그인하십시오.


Vemund Svanes Bertelsen
Hi, when encountering problems probably related to the .net framework version issue, I ran into trouble with getting the SDK 7.1 installation right in the reinstallation process. It turned out the source of the trouble was "Microsoft Visual C++ Compilers 2010 Standard - enu - x64". The sdk installer detected that it was installed, but claimed it would not need to be uninstalled, which in my case turned out not to be true. When installation of the SDK was complete Matlab gave the following message:
"Error: The Microsoft Windows Software Development Kit (SDK) installation is incomplete. Please be sure that the .NET Framework is installed correctly before attempting to reinstall the SDK."
when running the compiler setup.
The "Microsoft Visual C++ Compilers 2010 Standard - enu - x64" does not appear in the control panel overview of installed programs. I followed the instructions here:
to uninstall it. After running the SDK installation again following the steps outlined by the support team above, the Matlab compiler setup was satisfied and I can run the Matlab compiler again.
Thanks to everyone contributing, it helped me. I hope nobody needs my solution ;-)

moo
moo 8 Jan 2015
Two questions:
1) Is it necessary to install SDK 7.1 patch? It is not one of the steps but is included in troubleshooting - install or not?
2) Is it necessary to install all the SDK packages? Samples, Intellisense, etc. What's the minimim install for mex to work.
  댓글 수: 1
Christoph
Christoph 6 Feb 2015
1) You only have to install the patch if you have the situation that Microsoft Visual Studio C++ 2010 SP1 was already installed, then you tried to install SDK 7.1 on top and it failed (see TROUBLESHOOTING section) 2) I am afraid that there is no such minimum list of required components available. This will also depend a bit on your use case. I recommend to contact Technical Support if you need more details.

댓글을 달려면 로그인하십시오.


Shantanu Vaishnav
Shantanu Vaishnav 18 Jun 2016
Hello,
I followed all the above mentioned steps but am still not able to find the Windows SDK 7.1 compiler in the compiler list on writing mex -setup in MatLab. What do I do?
Thank You.
  댓글 수: 1
Walter Roberson
Walter Roberson 19 Jun 2016
Which operating system are you using, and which MATLAB version?
If you are using Windows 10, then you will find it difficult to use SDK 7.1; I do not know if Microsoft fixed the bugs that prevented it from being used.

댓글을 달려면 로그인하십시오.


windy wang
windy wang 20 Jun 2016
편집: MathWorks Support Team 1 Mar 2021
Dear MathWorks Support Team: My computer's system is win10, and the version of matlab is R2014a. When I run a file of "lightspeed toolbox", the command window says "错误使用 mex;未找到支持的编译器或 SDK。有关选项,请访问 https://www.mathworks.com/support/requirements/previous-releases.html ". Although I follow the index,but I fail to install visual c++ compiler.(I CAN NOT CHECK THE COMPONENT) Please help me with this problem, I would be very grateful. Best Regards

Door Cellor
Door Cellor 27 Feb 2017
Hello, I use a version R2015a on win10,and I have a error below.Can you give me some advice?
  댓글 수: 1
Walter Roberson
Walter Roberson 27 Feb 2017
SDK 7.1 is not compatible with Windows 10 -- not unless they have fixed some bugs in the some run time libraries and in installing .NET.
I do not know if you could get VS 2013 Professional to work. I would doubt any earlier versions of VS would work.
Perhaps one of the Intel compilers would work.

댓글을 달려면 로그인하십시오.


Matt Ward
Matt Ward 13 Mar 2017
I tried following many of the suggestions on this page on Windows 10 and still experienced install failures. I was finally able to make it work by downloading the .ISO installer from Microsoft following the suggestions from this page:
-Matt

Eva Gil
Eva Gil 15 May 2017
Hello, I've tried to install SDK 7.1 but it appears a message which says that I need to install the RTM.NET Framework 4 before. When I go to the website expecified (<http://go.microsoft.com/fwlink/?LinkID=187668>) a message is shown: "Your connection is not secure", and I can't download the .NET Framework4. Any advice to solve this problem? Thank you!
  댓글 수: 3
Walter Roberson
Walter Roberson 16 May 2017
For Windows 8, you have to uninstall .NET 4.1 (my memory tells me) and then install .NET 4.0 and then reinstall .NET 4.1
For Windows 10, there is a problem, as you cannot uninstall .NET 4.5 (my memory tells me) in order to install .NET 4.0 . I do not know how that problem was solved. I think I heard that a patched version of SDK 7.1 was created, but I am not at all certain of that.

댓글을 달려면 로그인하십시오.


vcmorini
vcmorini 14 Jun 2017
편집: MathWorks Support Team 7 Oct 2020
OS: Windows 7
Hi, I succeeded after:
  • Uninstalling Microsoft Visual Studio C++ 2010 x86 and x64
  • Uninstalling .NET
To uninstall both above: Start -> Control Panel -> Uninstall a program
Then:
  • Installing .NET 4 ( link )
  • Installing SDK 7.1 ( link )
SDK 7.1 Cons:

Aneesh Subrahmanian
Aneesh Subrahmanian 17 Aug 2017
편집: Aneesh Subrahmanian 30 Aug 2017
In Windows 7 Service pack 1 (64 bit) I had to
1. Uninstall All versions of .Net framework greater than 4
2. Uninstall All versions of Microsoft Visual C ++ greater than 2010
3. Install .Net Framework 4.0
to make it work.
I had Visual Studio 2015 Professional installed in my computer which stopped working after I uninstalled .Net Framework 4.6 . I had to go to Control Panel->Programs and Features to repair Visual Studio 2015 to make it work agin
  댓글 수: 2
Aneesh Subrahmanian
Aneesh Subrahmanian 30 Aug 2017
In Windows 7 Service pack 1 (64 bit)

댓글을 달려면 로그인하십시오.


maso0m aBbasi
maso0m aBbasi 12 Nov 2017
편집: MathWorks Support Team 1 Mar 2021
hi
Uninstalling Microsoft Visual Studio C++ 2010 x86 and x64
Uninstalling .NET
To uninstall both above: Start -> Control Panel -> Uninstall a program
Then:
Installing .NET 4 ( link )
Installing SDK 7.1 ( link )
and again install :
  • Microsoft Visual Studio C++ 2010 x86 and x64
  • .NET 4.6
I did the above steps without warning from SDK. But in the MATLAB environment, I get this error after using the mex command:
Error using mex No supported compiler or SDK was found. For options, visit https://www.mathworks.com/support/requirements/previous-releases.html.
Does anyone have a solution for me?

제품


릴리스

R2011b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by