How do I install Microsoft Windows SDK 7.1?

501 views (last 30 days)
I would like to know the specific steps needed to install Microsoft Windows SDK 7.1.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 7 Dec 2023
Edited: MathWorks Support Team on 14 Dec 2023
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
If you are unable to install Windows SDK 7.1 it could be due to the following potential reasons:
1) .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.
2) 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
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.
3) "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
4) 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:
https://support.microsoft.com/en-us/topic/fix-problems-that-block-programs-from-being-installed-or-removed-cca7d1b6-65a9-3d98-426b-e9f927e1eb4d
The following post addresses the issue that occurs when removing the Visual Studio 2010 and .NET 4.5 redistributable:
https://stackoverflow.com/questions/19366006/error-when-installing-windows-sdk-7-1
5) 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:
http://www.microsoft.com/en-us/download/details.aspx?id=4422
Upgrading Microsoft Visual Studio C++ 2010 to SP1.
Microsoft Visual Studio C++ 2010 SP1 upgrade can be obtained from:
https://support.microsoft.com/en-us/topic/description-of-visual-studio-2010-service-pack-1-1f12811e-3826-6728-9f40-b11ee9ae2a0e
  3 Comments
Walter Roberson
Walter Roberson on 17 Nov 2015
Edited: MathWorks Support Team on 7 Sep 2017
Biruntha, I do not have an answer for you, but for information of other people who might be reading this, I will note that in another question you indicated you are running R2013a . That version does support SDK 7.1 so the reason for your difficulty is something I do not know at present.
Walter Roberson
Walter Roberson on 17 Nov 2015
The WinSDKSamples_x86.msi file does appear to exist in the location named, so either you had a temporary glitch or you had a network problem or you have interference from an antivirus or a firewall program.

Sign in to comment.

More Answers (0)

Categories

Find more on COM Component Integration in Help Center and File Exchange

Products


Release

R2011b

Community Treasure Hunt

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

Start Hunting!