Install Windows SDK 7.1 and .NET4 on Windows 10 64-bit

Purpose:

Successfully installed window sdk7.1 and .NET Framework 4 on window10

Requirements:

support some older software written in Visual Studio 2010 using Windows SDK 7.1

Steps:

1. Uninstall .NET Framework 4 or above

If a version of .NET Framework 4 or above is installed, problems may occur when installing .NET 4 even if sdk7.1 is installed successfully.

Uninstall first, then install .NET 4, and then install the required .NET version, such as 4.5 or 4.6.

2. Uninstall Microsoft Visual Studio C++ 2010

Applicable situation 1:

Solution comes from:

http://www.cnblogs.com/duanshuiliu/archive/2013/04/02/2994776.html

The following 4 components especially need to be uninstalled:

Visual C++ 2010 x86 redistributable,

Visual C++ 2010 x64 redistributable (64-bit windows),

Microsoft Visual C++ Compilers 2010 X86 and X64 versions (don’t worry if they don’t exist on some computers).

It is worth noting that the latter two need to be checked in the registry to see if they exist. The path is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall.

Find the Display name “Microsoft Visual C++ Compilers 2010 Standard – enu – x86” and “Microsoft Visual C++ Compilers 2010 Standard – enu – x64”, and then uninstall according to the above link method.

Applicable situation two:

Solution comes from:

https://forum.openrobotino.org/forum/main-forum/software/211-matlab-64bit-compiler-problems-with-sdk-7-1-under-windows-10

First, Uninstall any Visual C++ 2010 Redistributables from the control panel

That is to uninstall Visual C++ 2010 related components, which is similar to the above applicable situation.

Secondly, Download the corresponding offline ISO image from the Windows SDK archive

The iso image used here (https://www.microsoft.com/en-us/download/details.aspx?id=8442),

Choose different images according to your own situation
x86 ISO File Name:GRMSDK_EN_DVD.iso 32-bit system
x64 ISO File Name:GRMSDKX_EN_DVD.iso 64-bit system
Itanium ISO File Name:GRMSDKIAI_EN_DVD.iso

Finally, After mounting the image to an virtual disk (Like Virtual clone drive) , open F:\Setup\SDKSetup.exe directly

Hang on the image and click Install. When I did it, it didn’t go so smoothly. An error message always appeared.

Some Windows SDK components require the RTM .NET Framework 4. Setup detected a pre-release version of .NET Framework 4. If you continue with Setup, these components will not be installed. If you want to install these components, click Cancel, then install the .NET Framework 4 from https://go.microsoft.com/fwlink/?LinkID=187668 and then rerun Setup.

Click OK to continue.

Click OK, it’s not OK at all. Where did it come from the pre-release version of .NET Framework4.

It turns out that in the win10 64bit system, two registration entries still need to be modified:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\
ET Framework Setup\
DP\v4\Full\Version
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\
ET Framework Setup\
DP\v4\Client\Version

find them,

image

Change the Version values of Client and Full from 4.6.01586 (need to remember) to 4.0.30319. This modification requires permissions.

How to modify permissions, follow the link below to modify it yourself, https://www.groovypost.com/howto/take-full-permissions-control-edit-protected-registry-keys/.

Due to privacy issues, it is difficult to demonstrate here. The basic content is to modify the Owner first, and then add Permission Entry (that is, select a principal)

image

After saving the modification, the permissions will be modified, and the installation will be successful after modification.

Finally, come back here and change it back to its original value.

3. Test results

Setting the default C compiler in my Matlab2013a.

>> mex-setup

Welcome to mex -setup. This utility will help you set up

a default compiler. For a list of supported compilers, see

http://www.mathworks.com/support/compilers/R2013a/win64.html

Please choose your compiler for building MEX-files:

Would you like mex to locate installed compilers [y]/n? y

Select a compiler:

[1] Microsoft Software Development Kit (SDK) 7.1 in C:\Program Files (x86)\Microsoft Visual Studio 10.0

[0] None

Compiler: 1

Please verify your choices:

Compiler: Microsoft Software Development Kit (SDK) 7.1

Location: C:\Program Files (x86)\Microsoft Visual Studio 10.0

Are these correct [y]/n? y

omit….

>>

Postscript

If you configure the C compiler in sdk7.1 for matlab2013a in win10 64bit, someone can just install visual studio2012 directly. However, I am using visual studio 2015 and do not want to install the previous version. The picture is simple, you can give it a try.

Reference:

Questions

http://stackoverflow.com/questions/32091593/cannot-install-windows-sdk-7-1-on-windows-10

solutions

https://www.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1

https://forum.openrobotino.org/forum/main-forum/software/211-matlab-64bit-compiler-problems-with-sdk-7-1-under-windows-10

http://stackoverflow.com/questions/31455926/windows-sdk-setup-failure

https://www.groovypost.com/howto/take-full-permissions-control-edit-protected-registry-keys/

resources

Microsoft Windows SDK for Windows 7 and .NET Framework 4 (ISO):

https://www.microsoft.com/en-us/download/details.aspx?id=8442