我似乎完全无法将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版本时也遇到过同样的问题。它与(至少在我的情况下)安装的explore.exe有关。我卸载了explore,重新安装了它,做了一堆注册表更改,等等,根据各种博客和sdk都无济于事。最终为我解决这个问题的是编辑这个注册表项:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer\DisableBrowse

我把值改为0。SDK安装完成后(这次非常愉快),我将该值设置为1。

SDK设置日志中的以下内容提醒了我可能的错误:

12:19:42 PM Friday, 8 January 2010: SFX C:\Program Files\Microsoft SDKs\Windows\v7.0\Setup\SFX\dexplore.exe installation started with log file C:\TEMP\Microsoft Windows SDK for Windows 7_dd2d9383-116d-441f-85b3-7c16aeb3568e_SFX.log
12:19:47 PM Friday, 8 January 2010: C:\Program Files\Microsoft SDKs\Windows\v7.0\Setup\SFX\dexplore.exe installation failed with return code 1625

这在探索安装日志文件:

MSI (s) (E4:7C) [12:19:46:680]: Machine policy value 'DisableBrowse' is 1
MSI (s) (E4:7C) [12:19:46:680]: Adding new sources is not allowed.
MSI (s) (E4:7C) [12:19:46:680]: Warning: rejected attempt to add new source 'c:\eb66d60e4283bfc2986755fa\' (product: {6753B40C-0FBD-3BED-8A9D-0ACAC2DCD85D})
MSI (s) (E4:7C) [12:19:46:680]: MSI_LUA: Elevation prompt disabled for silent installs
MSI (s) (E4:7C) [12:19:46:680]: Note: 1: 1729 
MSI (s) (E4:7C) [12:19:46:680]: Product: Microsoft Document Explorer 2008 -- Configuration failed.

我希望这对你的情况有所帮助。

其他回答

我有同样的错误,这个“Windows 7 SDK安装失败”:

找到答案后,我就有了解决方案。

It may also happen that the SDK installation runs through with a "success" message at the end, but nothing was actually installed. The only way to really find out whether the SDK was installed is to check the respective directory. C:Files\Microsoft SDKs\Windows\v7.1 or C:Files (x 86) SDKs\Windows\v7.1. If the subdirectory "v 7.1" was created and has some content, the SDK was installed. The solution for this problem is the same as for the issue with the error message: Uninstall Microsoft Visual C++ 2010 Redistributable (see below).

解决方案:在Windows SDK安装之前卸载Microsoft Visual c++ 2010可重分发安装。

在安装之前,我有以下Microsoft Visual c++ 2010 Redistributable安装。注意更新的是x64版本。

Microsoft Visual c++ 2010 Redistributable x 64-Microsoft Corporation 10.0.40219 15.2 MB 10.0.40219 Microsoft Visual c++ 2010 redistributable - x86 10.0.30319

我也无法安装Windows 7 SDK,它建议我删除最新的SDK和Visual Studio 2012 Express。这并没有起作用。

还有一些关于。net 3.5的东西。我用。net 3.5安装了Server 2008 SDK,卸载了Visual Studio 2010的可重分发文件,并确保在安装选项中未选中可重分发文件。

此外,您需要已经安装的。net 4框架,您可以从微软的网站下载。然后就成功了。

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

我想补充的是,删除Visual c++ 2012 Redistributable可能也是必要的。我删除了Visual c++ 2012 Redistributable x84和x64,然后我的安装工作。

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

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

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