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).
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.