安装 Windows SDK 7.1 时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19366006/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error when installing windows SDK 7.1
提问by Red Alert
I've run into an error when installing the Windows SDK that I've seen posted around the Internet, but none of the solutions are working for me. Here is the log I'm getting
在安装我在 Internet 上看到的 Windows SDK 时,我遇到了一个错误,但没有一个解决方案对我有用。这是我得到的日志
9:43:37 AM Monday, October 14, 2013: SFX C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installation started with log file C:\Users\clarkbd\AppData\Local\Temp\Microsoft Windows SDK for Windows 7_c3c42538-8a3e-439d-be39-aee3078ca098_SFX.log
9:43:43 AM Monday, October 14, 2013: C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installation failed with return code 1603
9:43:53 AM Monday, October 14, 2013: [SDKSetup:Error] Config_Products_Install: Installation of Product Microsoft Windows SDK for Windows 7 (failed): Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information. Stack: at SDKSetup.Product.ConfigureRelatedSfx() at SDKSetup.Product.ConfigureNewProduct(ManualResetEvent CancelEvent)
9:43:53 AM Monday, October 14, 2013: [SDKSetup:Info] Config_Products_InstallNew: End installation of new product: Microsoft Windows SDK for Windows 7
9:43:53 AM Monday, October 14, 2013: [SDKSetup:Error] Config_Products_Install: Windows SDK Setup (failed): 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. Stack: at SDKSetup.Product.ConfigureNewProduct(ManualResetEvent CancelEvent) at SDKSetup.Product.SetupProduct(TaskMode taskMode, ManualResetEvent CancelEvent) at SDKSetup.ProductCollection.SetupProducts(TaskMode taskMode, DownloadManager downloadManager, ManualResetEvent cancelEvent) at SDKSetup.ConfigProducts.DoCurrentTask(TaskMode Task)
When I try to run vcredist_x64 separately, I get this error:
当我尝试单独运行 vcredist_x64 时,出现此错误:
MSI (s) (80:5C) [09:51:50:971]: Product: Microsoft Visual C++ 2010 x64 Redistributable - 10.0.30319 -- A later version of Microsoft Visual C++ 2010 x64 Redistributable - 10.0.30319 is already installed.
Now, as per every solution I've read about this online, I'd uninstall the redistributable and continue with the installation. The problem is that I don't have any VC++ 2010 redistributables installed (only 2005 and 2008). The only thing besides the main program is something called Microsoft Visual Studio 2010 Express Prerequisites x64 - ENU
. Uninstalling this has no effect on the errors I receive. There's something on my computer that's telling the SDK I have this redist installed, but I'm not sure what. Can anyone shed some light on this for me?
现在,根据我在网上阅读的每个解决方案,我将卸载可再发行组件并继续安装。问题是我没有安装任何 VC++ 2010 可再发行组件(仅 2005 和 2008)。除了主程序之外,唯一的东西就是叫做Microsoft Visual Studio 2010 Express Prerequisites x64 - ENU
. 卸载它对我收到的错误没有影响。我的电脑上有东西告诉 SDK 我安装了这个 redist,但我不确定是什么。任何人都可以为我解释一下吗?
Edit: This problem persists even when I completely uninstall Visual C++ 2010. What else can I do to remove all traces of this software from my machine?
编辑:即使我完全卸载 Visual C++ 2010,这个问题仍然存在。我还能做些什么来从我的机器上删除这个软件的所有痕迹?
Edit 2: After searching the registry a bit, I've found that NI installs its own visual c++ 2010 redistributable with one of its programs, but it isn't included in the "Add or Remove Programs" list. I've uninstalled this and hopefully the sdk will install properly.
编辑 2:稍微搜索注册表后,我发现 NI 安装了自己的 Visual c++ 2010 可再发行版及其程序之一,但它未包含在“添加或删除程序”列表中。我已经卸载了它,希望 sdk 能够正确安装。
Edit 3: No luck, still getting the same error. I can find other 2010 redistributables in the registry, but trying to execute the uninstall string manually just tells me that I can only run it on installed packages. This would be much simpler if I knew how the vcredist finds currently installed redistributions.
编辑 3:不走运,仍然遇到相同的错误。我可以在注册表中找到其他 2010 可再发行组件,但是尝试手动执行卸载字符串只会告诉我我只能在已安装的软件包上运行它。如果我知道 vcredist 如何找到当前安装的重新分发,这会简单得多。
采纳答案by Red Alert
Success! I was able to purge the vc++ 2010 redistributables from my machine using Microsoft's Fix it utility: http://support.microsoft.com/mats/Program_Install_and_Uninstall
成功!我能够使用 Microsoft 的 Fix it 实用程序从我的机器中清除 vc++ 2010 可再发行组件:http: //support.microsoft.com/mats/Program_Install_and_Uninstall
It was able to find both the x64 and x86 versions of the redistributable and uninstall it, removing ~120 entries from the registry and allowing the sdk installation to go forward. It had nothing to do with NI's version of the vc++ 2010 redistributable.
它能够找到可再发行组件的 x64 和 x86 版本并将其卸载,从注册表中删除约 120 个条目并允许 sdk 安装继续进行。它与 NI 的 vc++ 2010 可再发行版本无关。
回答by Jaime Hablutzel
This is a known issue http://support.microsoft.com/kb/2717426
这是一个已知问题http://support.microsoft.com/kb/2717426
CAUSE
原因
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.
当您在安装了较新版本的 Visual C++ 2010 Redistributable 的计算机上安装 Windows 7 SDK 时,会出现此问题。
RESOLUTION
解析度
To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the Windows 7 SDK. You may have one or more of the following products installed:
- Microsoft Visual C++ 2010 x86 Redistributable
- Microsoft Visual C++ 2010 x64 Redistributable
After uninstalling the Microsoft Visual C++ 2010 Redistributable products, you may install the Windows 7 SDK. After installing the Windows 7 SDK, you may then reinstall the newer version of the Visual C++ 2010 Redistributable products, in order to restore the Visual C++ 2010 Redistributable products to their original state.
要解决此问题,您必须在安装 Windows 7 SDK 之前卸载所有版本的 Visual C++ 2010 Redistributable。您可能安装了以下一种或多种产品:
- Microsoft Visual C++ 2010 x86 可再发行组件
- Microsoft Visual C++ 2010 x64 可再发行组件
卸载 Microsoft Visual C++ 2010 Redistributable 产品后,您可以安装 Windows 7 SDK。安装 Windows 7 SDK 后,您可以重新安装较新版本的 Visual C++ 2010 Redistributable 产品,以便将 Visual C++ 2010 Redistributable 产品恢复到其原始状态。
回答by mp31415
I struggled with Windows SDK web installer on Win7 Prof 64bit. Uninstalling/reinstalling VS 2010 redistributables didn't help. Only after downloading Windows SDK ISO file the installation completed successfully (the one for x64 is GRMSDKX_EN_DVD.iso).
我在 Win7 Prof 64bit 上使用 Windows SDK Web 安装程序时遇到了困难。卸载/重新安装 VS 2010 可再发行组件没有帮助。只有在下载 Windows SDK ISO 文件后,安装才成功完成(x64 的安装是 GRMSDKX_EN_DVD.iso)。
My theory would be that web installer chose wrong architecture somehow causing installation to fail.
我的理论是网络安装程序选择了错误的架构,以某种方式导致安装失败。
回答by Matthieu
All of the above answers helped me but none really worked for me.
以上所有答案对我都有帮助,但没有一个真正对我有用。
I finally managed to compile 64 bits with Visual Express 2010 by installing the SDK beforeVisual Express 2010. So:
通过在Visual Express 2010之前安装 SDK ,我终于设法用 Visual Express 2010 编译了 64 位。所以:
- (uninstall Visual Express 2010, maybe using this registry hackif some Visual Compilers are still seen as installed but not shown in the "Programs and Features" panel)
- Install Windows SDK
- Install Visual Express 2010
- Configure the default library search pathto point at the SDK
- (卸载 Visual Express 2010,如果某些 Visual Compilers 仍被视为已安装但未显示在“程序和功能”面板中,则可能使用此注册表黑客)
- 安装 Windows SDK
- 安装 Visual Express 2010
- 配置默认库搜索路径指向SDK
I'm lazy to uninstall Visual Express, reinstall the SDK and then again Visual Express, but I got it all in a VirtualBox VM which I will preciously keep in a safe at the bank! ;)
我懒得卸载 Visual Express,重新安装 SDK,然后再次安装 Visual Express,但我把所有的东西都放在了 VirtualBox VM 中,我将把它保存在银行的保险箱里!;)