Windows 7 SDK安装失败

发布于 2024-08-14 21:22:49 字数 671 浏览 11 评论 0原文

我似乎完全无法将 Windows 7 SDK 安装到我的计算机上,这是我唯一的解决方案在网上找到的方法是对注册表进行大量更改。我已经这样做了 - 仍然没有成功。

这是报告的错误:

安装选定的 Windows SDK 组件时出现问题。

安装“Microsoft Windows SDK for Windows 7”产品报告了以下错误:请参阅 Samples\Setup\HTML\ConfigDetails.htm 文档以获取更多信息。

请尝试解决问题,然后重新启动 Windows SDK 安装。如果您仍然遇到此问题,请访问 SDK 团队支持页面:http:// go.microsoft.com/fwlink/?LinkId=130245

单击“查看日志”按钮可查看安装日志。

要退出,请单击“完成”。

也没有可供参考的 Samples 目录,并且 SDK 支持团队似乎不再驻留在该目录中。

我该如何解决这个问题?

I seem to be completely unable to install the Windows 7 SDK onto my machine, and the only solution I've found on the web is to make a swathe of registry changes. I've done this - still no success.

This is the reported error:

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.

There is no Samples directory to refer too, and the SDK support team don't appear to live there any longer.

How do I fix this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(12

我恋#小黄人 2024-08-21 21:22:49

Microsoft 现在有一篇名为Windows SDK 无法安装并返回代码 5100< 的知识库文章/em> 描述了这个问题及其修复:

当您在安装了较新版本的 Visual C++ 2010 Redistributable 的计算机上安装 Windows 7 SDK 时,会出现此问题。 Windows 7 SDK 安装 Visual C++ 2010 Redistributable 版本 10.0.30319。

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

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

我刚刚遇到这个问题,我查看了 Ctrl+F5 的解决方案,修复安装适用于 Windows 7 的 Windows SDK 的问题,但不起作用。

我用谷歌搜索并找到了该页面安装适用于 Windows 7 的 Visual C++ 2010 和 Windows SDK:脱机安装程序和安装疑难解答 以及其中的建议有效。基本上,您可能会遇到几个问题之一,并且您必须查看日志文件以了解发生了什么情况。在我的日志文件中,我有:

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 网站上的解决方案。

我希望这有帮助!

Microsoft now has a knowledge base article called Windows SDK Fails to Install with Return Code 5100 that describes this problem and its fix:

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.

The error message is located in the log file, which can be opened through the View Log button in the installer. Otherwise, it can be found here: %userprofile%\AppData\Local\Temp\ or %temp%. The log file is most likely called SDKSetup_7.xxxxx.log.

Solution: Uninstall any existing Visual C++ 2010 redistributable.

I just had this problem, and I looked at the solution at Ctrl+F5, Fix Problem Installing Windows SDK for Windows 7, but it didn't work.

I googled around and found the page Installing Visual C++ 2010 and Windows SDK for Windows 7: offline installer and installation troubleshooting and the advice there worked. Basically you could have one of several problems, and you have to look in the log file to see what's going on. In my log file I had:

6:17:07 PM Saturday, October 01, 2011: C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installation failed with return code 5100

so as that above web page suggested, I uninstalled both copies of the Visual C++ 2010 Redistributable Package that I had (both x86 and x64), and then when I ran the Windows 7 SDK installer again, it worked.

Although you might have a different problem than me. Try the solutions at the Ctrl+F5 and patheticcockroach.com websites that I linked.

I hoped this helped!

无所的.畏惧 2024-08-21 21:22:49

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

需要离线安装包(我的是x64),只需要手动安装示例即可。例如,使用 7-Zip 从位置 打开 ISO 文件Setup\WinSDKSamples_amd64 并运行 WinSDKSamples_amd64.msi 为我做到了这一点。

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

All of these (and other) solutions have failed completely for me so I figured out another.

You need the offline installation package (mine was x64), and you need to manually install only the samples. Opening the ISO-file with, for example, 7-Zip from location Setup\WinSDKSamples_amd64 and running WinSDKSamples_amd64.msi did this for me.

Then you just use the normal setup file to REPAIR the installation and choose whatever components you wish.

明媚殇 2024-08-21 21:22:49

你真的应该检查一下日志。似乎有相当多的组件可能会导致 Windows SDK 安装程序无法安装,并出现此无用的错误消息。例如,它可以是 Visual C++ 可再发行组件包 那里提到

You should really check the log. It seems that quite a few components can cause the Windows SDK installer to fail to install with this useless error message. For instance it could be the Visual C++ Redistributable Package as mentioned there.

王权女流氓 2024-08-21 21:22:49

我在安装 x64 版本时也遇到了同样的问题。它与(至少在我的情况下)与 dexplore.exe 安装。我卸载了 dexplore,重新安装了它,根据各种博客和 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

在 dexplore 安装日志文件中:

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.

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

I have had this same problem with the x64 version installation. It relates (in my case at least) to the dexplore.exe installation. I uninstalled dexplore, reinstalled it, did a heap of registry changes, etc. as per various blogs and SDKs all to no avail. What finally fixed it for me was editing this registry key:

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

I changed the value to 0. Once the SDK had installed (quite happily this time) I set the value back to 1.

What alerted me to the possible error was the following in the SDK setup log:

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

And this in the dexplore installation logfile:

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.

I hope this is of assistance in your situation.

冷月断魂刀 2024-08-21 21:22:49

还需要记住的一件事是,当您安装 Visual Studio 2010 SP1 时,某些 C++ 编译器和库可能已被删除。 Microsoft 提供了更新,以确保这些将带回您的系统。

安装此更新以恢复 Visual C++ 编译器和库
Visual Studio 2010 Service Pack 1 时可能已删除
(SP1) 已安装。编译器和库是
适用于 Windows 7 和 .NET 的 Microsoft Windows 软件开发套件
Framework 4(以后称为 Windows SDK 7.1)。

另外,当您阅读 VS2010 SP1 README 您还会注意到,其中有一些关于 Windows 7 SDK(请参阅第 2.2.1 节)安装的注释。这些条件之一可能适用于您,因此可能需要取消选中 C++ 编译器复选框,因为 SDK 安装程序将尝试安装旧版本的编译器,或者您可能需要卸载 VS2010 SP1 并重新运行 SDK 7.1 安装、修理或改装。

条件 1:如果在运行时选择了 Visual C++ 编译器复选框
在 Visual 之后安装、修复或修改 Windows SDK 7.1
Studio 2010 SP1已安装,可能会遇到错误
某些选定的组件可能无法安装。

解决方法:在运行之前清除 Visual C++ 编译器复选框
Windows SDK 7.1 安装、修复或修改。

条件 2:如果在运行时选中 Visual C++ 编译器复选框
在 Visual 之后安装、修复或修改 Windows SDK 7.1
已安装 Studio 2010,但尚未安装 Visual Studio 2010 SP1
卸载后,可能会遇到该错误。

解决方法:卸载 Visual Studio 2010 SP1,然后重新运行
Windows SDK 7.1 安装、修复或修改。

然而,即便如此,我发现我仍然需要卸载任何现有的 Visual C++ 2010 可再发行组件,正如 mgrandi 所建议的那样。

One of the things to also keep in mind is that when you have Visual Studio 2010 SP1 installed some C++ compilers and libraries may have been removed. There's been an update made available by Microsoft to make sure those are brought back to your system.

Install this update to restore the Visual C++ compilers and libraries
that may have been removed when Visual Studio 2010 Service Pack 1
(SP1) was installed. The compilers and libraries are part of the
Microsoft Windows Software Development Kit for Windows 7 and the .NET
Framework 4 (later referred to as the Windows SDK 7.1).

Also, when you read the VS2010 SP1 README you'll also notice that some notes have been made in regards to the Windows 7 SDK (See section 2.2.1) installation. It may be that one of these conditions may apply to you and therefore may need to uncheck the C++ compiler-checkbox as the SDK installer will attempt to install an older version of compilers ÓR you may need to uninstall VS2010 SP1 and re-run the SDK 7.1 installation, repair or modification.

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.

However, even then I found that I still needed to uninstall any existing Visual C++ 2010 redistributables, as has been suggested by mgrandi.

千寻… 2024-08-21 21:22:49

我永远无法安装 Windows 7 SDK,它建议我删除最新的 SDK 和 Visual Studio 2012 Express。那行不通。

还有一些关于 .NET 3.5 的内容。我安装了带有 .NET 3.5 的 Server 2008 SDK,卸载了 Visual Studio 2010 可再发行组件,并确保在安装选项中未选中可再发行组件。

此外,您还需要已安装的 .NET 4 框架,您可以从 Microsoft 网站下载该框架。然后就成功了。

I could never get the Windows 7 SDK to install either, and it suggested I remove the latest SDK and Visual Studio 2012 Express. That didn't work.

There was also something about .NET 3.5. I installed the Server 2008 SDK with .NET 3.5, uninstalled Visual Studio 2010 redistributables and made sure redistributables were unchecked in the installation options.

Also, you need the .NET 4 framework already installed, which you can download from Microsoft's site. Then it worked.

玩物 2024-08-21 21:22:49

卸载所有 C++ 可再发行组件并取消选中 C++ 选项对我有用。请注意,我已经安装了 VS2010 SP1 和 VS2012。

Uninstalling all C++ redistributables and unchecking the C++ option worked for me. Note that I have VS2010 SP1, and VS2012 installed already.

思念满溢 2024-08-21 21:22:49

mgrandi 提供了非常好的资源和答案。我遵循类似的指导方针,并通过删除“剩余”组件来解决这个问题。

作为参考,请查看适用于 Windows 7 和 .NET Framework 4 的 Windows SDK 发行说明

这将下载 SDK 的发行说明(在尝试安装 SDK 后,您的计算机上也应该有它),并且在“安装和卸载 Windows SDK”部分中,您可以看到 Microsoft 建议在发行说明后清理一些混乱的内容。

mgrandi provided a very good resource and answer. I followed similar guidelines and by removing 'leftover' components managed to solve the problem.

As a reference, take a look at Windows SDK for Windows 7 and .NET Framework 4 Release Notes.

This downloads the release notes of the SDK (you should also have it on your computer after trying to install the SDK), and in the section 'Installing and Uninstalling the Windows SDK' you can see that Microsoft recommend cleaning some mess after them.

野侃 2024-08-21 21:22:49

我安装了Visual Studio 2012并安装了Visual Studio 2010服务包1并尝试再次安装SDK,它起作用了。我不知道他们中的哪一个解决了这个问题。

I installed Visual Studio 2012 and installed Visual Studio 2010 service package 1 and tried installing the SDK again, and it worked. I don't know which of them solved the problem.

你的往事 2024-08-21 21:22:49

我遇到了与“Windows 7 SDK 安装失败”相同的错误:

在此处输入图像描述

经过查找,我得到了解决方案。

也可能会出现 SDK 安装结束并显示“成功”消息,但实际上并未安装任何内容的情况。真正了解 SDK 是否已安装的唯一方法是检查相应的目录。 C:Files\Microsoft SDKs\Windows\v7.1 或 C:Files (x 86) SDKs\Windows\v7.1。如果子目录“v 7.1”已创建并且包含一些内容,则说明 SDK 已安装。此问题的解决方案与出现错误消息的问题的解决方案相同:卸载 Microsoft Visual C++ 2010 Redistributable(请参见下文)。

解决方案:在安装 Windows SDK 之前卸载 Microsoft Visual C++ 2010 Redistributable 安装。

在安装之前,我安装了以下 Microsoft Visual C++ 2010 Redistributable。请注意,x 64 版本已更新。

  • Microsoft Visual C++ 2010 Redistributable x 64-Microsoft Corporation 10.0.40219 15.2 MB 10.0.40219
  • Microsoft Visual C++ 2010 Redistributable-x 86 10.0.30319 Microsoft Corporation 11.0 MB 10.0.30319

I'm having the same error as this "Windows 7 SDK installation failure":

Enter image description here

After finding out, I've got the solution.

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

Resolution: Uninstall Microsoft Visual C++ 2010 Redistributable installations prior to Windows SDK installation.

Before the installation, I had the following Microsoft Visual C++ 2010 Redistributable installations. Note that the x 64 version is updated.

  • Microsoft Visual C++ 2010 Redistributable x 64-Microsoft Corporation 10.0.40219 15.2 MB 10.0.40219
  • Microsoft Visual C++ 2010 Redistributable-x 86 10.0.30319 Microsoft Corporation 11.0 MB 10.0.30319
转角预定愛 2024-08-21 21:22:49

我想补充一点,删除 Visual C++ 2012 Redistributable 可能也是必要的。我删除了 Visual C++ 2012 Redistributable x84 和 x64,然后我的安装成功了。

I'd like to add that removing the Visual C++ 2012 Redistributable may be necessary, too. I removed both the Visual C++ 2012 Redistributable x84 and x64 and then my installation worked.

温柔戏命师 2024-08-21 21:22:49

您是否可以使用装有 Windows 7 的电脑或已安装 SDK 的电脑?

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

Do you have access to a PC with Windows 7, or a PC with the SDK already installed?

If so, the easiest solution is to copy the C:\Program Files\Microsoft SDKs\Windows\v7.1 folder from the Windows 7 machine to the Windows 8 machine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文