我似乎完全无法将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支持团队似乎也不再存在于那里了。

我如何解决这个问题?


当前回答

所有这些(和其他)解决方案对我来说都完全失败了,所以我想出了另一个。

您需要脱机安装包(我的是x64),并且只需要手动安装示例。例如,从Setup\WinSDKSamples_amd64位置打开7-Zip的iso文件,并运行WinSDKSamples_amd64。Msi为我做了这些。

然后,您只需使用正常的安装文件来修复安装,并选择您希望的任何组件。

其他回答

我安装了Visual Studio 2012和Visual Studio 2010服务包1,并尝试再次安装SDK,它工作了。我不知道他们谁解决了这个问题。

卸载所有c++可重分发文件和取消选中c++选项对我来说很有效。注意,我已经安装了VS2010 SP1和VS2012。

你真该查查日志。似乎有相当多的组件会导致Windows SDK安装程序安装失败,并出现这个无用的错误消息。例如,它可以是上面提到的Visual c++ Redistributable Package。

你是否有一台装有Windows 7的电脑,或者一台已经安装了SDK的电脑?

如果是这样,最简单的解决方案是将C:\Program Files\Microsoft sdk \Windows\v7.1文件夹从Windows 7机器复制到Windows 8机器。

Mgrandi提供了非常好的资源和答案。我遵循了类似的原则,通过移除“剩余的”组件来解决问题。

作为参考,看看Windows 7的Windows SDK和。net Framework 4的发布说明。

这将下载SDK的发布说明(在尝试安装SDK后,你的计算机上也应该有它),在“安装和卸载Windows SDK”一节中,你可以看到微软建议在它们之后清理一些混乱。