winapi - Windows 7 SDK安装失败

标签 winapi failed-installation

我似乎完全无法安装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 支持团队似乎不再驻留在该目录中。

如何解决这个问题?

最佳答案

Microsoft 现在有一篇名为 Windows SDK Fails to Install with Return Code 5100 的知识库文章 描述了这个问题及其修复:

This issue occurs when you install the Windows 7 SDK on a computer that has a newer version of the Visual C++ 2010 Redistributable installed. The Windows 7 SDK installs version 10.0.30319 of the Visual C++ 2010 Redistributable.

错误消息位于日志文件中,可以通过安装程序中的查看日志按钮打开该文件。否则,可以在此处找到:%userprofile%\AppData\Local\Temp\%temp%。该日志文件很可能名为 SDKSetup_7.xxxxx.log

解决方案:卸载任何现有的 Visual C++ 2010 可再发行组件。

我刚刚遇到了这个问题,我查看了Ctrl+F5的解决方案, Fix Problem Installing Windows SDK for Windows 7 ,但没有成功。

我用谷歌搜索并找到了页面 Installing Visual C++ 2010 and Windows SDK for Windows 7: offline installer and installation troubleshooting 那里的建议奏效了。基本上,您可能会遇到几个问题之一,并且您必须查看日志文件以了解发生了什么情况。在我的日志文件中,我有:

2011 年 10 月 1 日星期六下午 6:17:07:C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe 安装失败,返回代码 5100

正如上述网页所建议的那样,我卸载了我拥有的 Visual C++ 2010 Redistributable Package 的两个副本(x86 和 x64),然后当我再次运行 Windows 7 SDK 安装程序时,它起作用了。

尽管您可能遇到与我不同的问题。尝试我链接的 Ctrl+F5patheticcockroach.com 网站上的解决方案。

我希望这有帮助!

关于winapi - Windows 7 SDK安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1901279/

相关文章:

winapi - 确定哪个打印机名称对应于哪个设备 ID

c# - 如何调用 Windows API

c++ - 如何知道 GetPrivateProfileInt/String 失败的原因

netbeans-6.9 - Netbeans 6.9.1安装错误: "No compatible JDK was found."

android - 安装错误: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED?

visual-studio-2013 - Visual Studio Ultimate 2013 安装失败

c - 如何在进行系统调用时阻止控制台窗口出现?

macos - 如何为在自定义路径上安装 Homebrew 软件的 node.js 安装 npm?

java - 第一次打开eclipse失败

c++ - Winapi:屏幕截图未显示在窗口上