Microsoft SDK for Windows 7安装失败,错误代码为5100.怎么办?

时间:2016-04-24 13:18:49

标签: .net visual-studio-2010 visual-c++ sdk

我有一台Windows 7机器(64位)。我试图为Windows 7安装Microsoft Windows SDK但收到错误消息

vcredist_x86.exe installation failed with return code 5100.

。 然而,经过一些谷歌搜索后,我发现我需要卸载Microsoft VC ++ 2010的可再发行组件。我卸载了它们并再次尝试但没有运气。现在我没有看到vc ++可再发行组件,但它仍返回相同的错误代码。我甚至尝试过使用离线安装程序,并且花了将近2天的时间。以下是安装日志文件的内容。

 Property(S): PrimaryVolumePath = C:
=== Logging stopped: 4/24/2016  18:19:30 ===
MSI (s) (48:E8) [18:19:30:365]: Product: Microsoft Windows SDK for Windows 7 (7.1) -- Removal completed successfully.

MSI (s) (48:E8) [18:19:30:365]: Windows Installer removed the product. Product Name: Microsoft Windows SDK for Windows 7 (7.1). Product Version: 7.1.30514. Product Language: 1033. Manufacturer: Microsoft Corporation. Removal success or error status: 0.

6:19:13 PM Sunday, April 24, 2016: SFX C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installation started with log file C:\Users\DSomesh.CORPDOM\AppData\Local\Temp\Microsoft Windows SDK for Windows 7_2ca916c2-edc1-4143-a09b-b60c211ff81a_SFX.log
6:19:19 PM Sunday, April 24, 2016: C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installed successfully.
6:19:20 PM Sunday, April 24, 2016: SFX C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x86.exe installation started with log file C:\Users\DSomesh.CORPDOM\AppData\Local\Temp\Microsoft Windows SDK for Windows 7_b43deeda-e8a8-44c8-811d-d555a448a006_SFX.log
6:19:22 PM Sunday, April 24, 2016: C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x86.exe installation failed with return code 5100
6:19:30 PM Sunday, April 24, 2016: [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)
6:19:30 PM Sunday, April 24, 2016: [SDKSetup:Info] Config_Products_InstallNew: End installation of new product: Microsoft Windows SDK for Windows 7
6:19:30 PM Sunday, April 24, 2016: [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)

请建议任何解决此问题的方法。感谢。

我尝试过:

1.卸载2010 vc ++的可再发行组件。 2.同时使用在线和离线安装程序。

1 个答案:

答案 0 :(得分:1)

I've had exactly the same problem. Uninstalling and reinstalling VC++ redistributables did help. You might need however to install both x86 and x64 before SDK installation can succeed. Here's MSDN KB article about this problem:

https://support.microsoft.com/en-gb/kb/2717426

A quite detailed report is also here:

http://notepad.patheticcockroach.com/1666/installing-visual-c-2010-and-windows-sdk-for-windows-7-offline-installer-and-installation-troubleshooting/

Hope this helps!