我似乎完全无法将Windows 7 SDK安装到我的机器上,我在网上找到的唯一解决方案是对注册表进行一系列更改。我试过了,还是没有成功。
这是报告的错误:
A problem occurred while installing selected Windows SDK components.
Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.
Please attempt to resolve the problem and then start Windows SDK setup again. If you continue to have problems with this issue, please visit the SDK team support page at http://go.microsoft.com/fwlink/?LinkId=130245.
Click the View Log button to review the installation log.
To exit, click Finish.
这里也没有Samples目录可供参考,SDK支持团队似乎也不再存在于那里了。
我如何解决这个问题?
还有一件事要记住,当你安装Visual Studio 2010 SP1时,一些c++编译器和库可能已经被删除了。微软已经进行了更新,以确保将这些内容带回您的系统。
安装此更新以恢复Visual c++编译器和库
这些可能在Visual Studio 2010 Service Pack 1时已被删除
安装(SP1)。编译器和库是
微软Windows软件开发工具包用于Windows 7和。net
框架4(后来称为Windows SDK 7.1)。
此外,当你阅读VS2010 SP1 README时,你也会注意到一些关于Windows 7 SDK(见2.2.1节)安装的注意事项。可能这些条件之一可能适用于您,因此可能需要取消选中c++编译器复选框,因为SDK安装程序将尝试安装旧版本的编译器ÓR您可能需要卸载VS2010 SP1并重新运行SDK 7.1安装,修复或修改。
Condition 1: If the Visual C++ Compilers checkbox is selected when the
Windows SDK 7.1 is installed, repaired, or modified after Visual
Studio 2010 SP1 has been installed, the error may be encountered and
some selected components may not be installed.
Workaround: Clear the Visual C++ Compilers checkbox before you run the
Windows SDK 7.1 installation, repair, or modification.
Condition 2: If the Visual C++ Compilers checkbox is selected when the
Windows SDK 7.1 is installed, repaired, or modified after Visual
Studio 2010 has been installed but Visual Studio 2010 SP1 has not been
uninstalled, the error may be encountered.
Workaround: Uninstall Visual Studio 2010 SP1 and then rerun the
Windows SDK 7.1 installation, repair, or modification.
然而,即使这样,我发现我仍然需要卸载所有现有的Visual c++ 2010可重分发版本,正如mgrandi所建议的那样。