103
votes

I am trying to install Windows SDK for Windows 7 with .NET Framework 4 but when I open the setup I receive an error:

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.

When I went to install the .NET Framework 4 it appears a message saying that there is already the .NET Framework 4 on my PC:

The Microsoft .NET Framework 4 is already part of the operating system. No need to install the .NET Framework 4 redistributable. More information.

An equal or higher version of the .NET Framework 4 has already been installed on the computer.

I don't know what to do anymore. I am using Windows 10 Enterprise (x64).

5
Nowadays, the link they provide is broken and just redirects to the generic .NET page >:(Nick T

5 Answers

107
votes

With Windows 10 x64, the setup is blocked by:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Full\Version
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Client\Version

Change both values temporarily to 4.0.30319 and the setup will let you continue. Make sure you edit the registry with elevated privileges, otherwise you will not be allowed to change the values.

26
votes

I had to uninstall the following:

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

Before installing the Windows 7.1 SDK, and the install package reinstalls those two during installation.

17
votes

In order to deal with this problem, I uninstalled my .NET framework version 4.6 and installed 4. Then I installed the SDK, and the problem was gone.

1
votes

I was also facing exactly the same problem mentioned above. After so many attempts the suggestion mentioned in the below link helped

https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/6e6c8a17-1666-42fa-9b5b-dfc21845d2f9/error-installing-windows-7-sdk-71-with-vs2008-vs2010-premium-on-win-7-32bit?forum=windowssdk

The steps executed by me are as follows

  1. Uninstall Visual C++ and .NET 4.x version
  2. Remove register entries corresponding to these installations. I was having Windows 7, but deleted entries as suggested here
  3. Restarted Windows
  4. Tried installing SDK using web installer
  5. This did not work. Later, invoked the SDK installation when the installation screen is still on [with the Installation Error msg] executed debug related msi [you can also install any extracted msi
  6. Once after the installation completes, close the Installation error UI [step 5] and reinvoke the installation of SDK.
  7. This time, UI screen option would change. Options that you can see is Change, Repair etc. Select Change and complete other component installation.
0
votes

I had an older version of .NET Framework and the C++ 2010 Redistributable x64 and x86 both. Uninstalling the 2010 allowed me to continue with no issues. I didn't uninstall the older version of .NET, but I did download and install the latest version FIRST.

The only component in the SDK I wanted to install was the Windows Performance Toolkit. I still got the warning at the start of the install. But it went through with anyway.

Maybe that adds a little thought in here...