2009-12-14 189 views
366

我似乎完全無法將Windows 7 SDK安裝到我的機器上,並且我在網上找到的唯一解決方案是對註冊表進行大量修改。我已經做到了 - 仍然沒有成功。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支持團隊似乎沒有任何再住在這裏。

我該如何解決這個問題?

+1

我已經在Windows XP和Vista,32位操作系統上嘗試了這一點;沒有什麼關於我的硬件的任何異國情調 –

+1

你讀過這個FAQ嗎? –

回答

9

我在安裝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. 

我希望這對您的情況有所幫助。

13

你應該真的檢查日誌。看起來相當多的組件可能導致Windows SDK安裝程序無法安裝這個無用的錯誤消息。例如,它可以是Visual C++ Redistributable Package,如mentioned there

+3

創建日誌在哪裏?它給出了一個相對路徑,我無法通過Windows搜索找到它...(Samples \ Setup \ HTML \ ConfigDetails.htm) –

531

微軟現在有一個名爲知識庫文章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.

錯誤消息位於日誌文件,這可以通過View Log按鈕,在打開安裝程序。否則,可以在這裏找到:%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和那裏的建議工作。基本上,你可能有幾個問題之一,你必須查看日誌文件,看看發生了什麼。在我的日誌文件我有:

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

,以便爲上述網頁的建議,我卸載的Visual C++ 2010再發行組件包,我有(包括x86和x64)的兩個副本,然後當我跑它再次運行SDK SDK安裝程序。

儘管您可能會遇到與我不同的問題。試試解決方案,我鏈接的Ctrl + F5patheticcockroach.com網站。

我希望這有幫助!

+88

卸載Visual C++ 2010 Redistributable爲我解決了這個問題。謝謝。 – Andy

+30

偉大的解決方案,這讓我難倒了。鑑於可再分發問題非常流行,您認爲他們會更改其SDK映像來解決問題。 – 2012-06-07 10:10:52

+2

刪除了所有現有的x86&x64 Visual C++ 2010 Redistibutables之後,也爲我工作...不確定它是否會幫助任何人,但爲我安裝的版本(Visual C++ 2010 Redistibutable)爲10.0.30319, x64 –

3

mgrandi提供了非常好的資源和答案。我遵循類似的指導方針,並刪除了設法解決問題的「剩餘」組件。

作爲參考,請看Windows SDK for Windows 7 and .NET Framework 4 Release Notes

這下載了SDK的發行說明(在安裝SDK後,您的計算機上也應該有它),在「安裝和卸載Windows SDK」一節中,您可以看到Microsoft建議您清理一些垃圾在他們之後。

7

需要牢記的一點是,當您安裝Visual Studio 2010 SP1時,可能會刪除一些C++編譯器和庫。有一個update由微軟提供,以確保這些被帶回到您的系統。

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

此外,當您閱讀VS2010 SP1 README,你還會發現一些筆記已在關於Windows 7的SDK進行了(參見2.2.1節)的安裝。可能這些條件之一可能適用於您,因此可能需要取消選中C++編譯器複選框,因爲SDK安裝程序將嘗試安裝較舊版本的編譯器。您可能需要卸載VS2010 SP1並重新運行SDK 7.1安裝,修理或修改。

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.

然而,即便如此,我發現,我仍然需要卸載任何現有的Visual C++ 2010和可再發行,如已被mgrandi建議。

6

我永遠無法獲得SDK安裝,並且它建議我刪除最新的SDK和Visual Studio 2012 Express。這沒有用。

還有一些關於.NET 3.5。我使用.NET 3.5安裝了Server 2008 SDK,卸載了Visual   Studio   2010可再發行組件,並確保在安裝選項中未選中可再發行組件。

此外,您還需要安裝.NET 4框架,您可以從Microsoft網站下載該框架。然後它工作。

2

我安裝了Visual Studio 2012並安裝了Visual Studio 2010服務包1,並嘗試再次安裝SDK,並且它工作正常。我不知道他們中的哪一個解決了問題。

4

卸載所有C++可再發行組件並取消選中C++選項。請注意,我已經安裝了VS2010 SP1和VS2012。

17

所有這些(和其他)解決方案都完全失敗了,所以我想出了另一個。

你需要離線安裝包(我的是64位),而你只需要手動安裝的樣本。打開ISO文件,例如7-Zip從位置Setup\WinSDKSamples_amd64和運行WinSDKSamples_amd64.msi爲我做了這個。

然後你只需使用正常的安裝文件REPAIR安裝並選擇你想要的任何組件。

+4

爲我工作,更少的工作,然後不得不卸載c + +可再分發。 – Erwin

+1

完美! :)我無法刪除尚未添加的內容,甚至無法刪除我的系統(僅限於後者)。 *這個*答案是我真正解決問題的答案。 – shermy

1

我想補充一點,刪除Visual C++ 2012 Redistributable也是必要的。我刪除了Visual C++ 2012 Redistributable x84和x64,然後我的安裝工作。

+0

您可以[下載Windows 7專業版(http://fileparrots.blogspot.com/2016/11/windows-7-professional-32-64-bit-iso.html)並安裝希望它會幫助你。 – NomanJaved

1

你有與Windows 7  ,或與SDK中的PC訪問PC已經安裝?

如果是這樣,最簡單的解決方案是將C:\Program Files\Microsoft SDKs\Windows\v7.1文件夾從Windows機器複製到Windows機器。

+0

這不是正常/典型/推薦的方式來獲得到位的SDK,但它的快速嘗試,將工作的大部分時間。我以這種方式設置了我的Windows 10/VS2015開發PC,並認爲我會分享這個提示。 –

0

我有同樣的錯誤,因爲這 「Windows 7的SDK安裝失敗」:

Enter image description here

找出後,我已經得到了解決。

它也可能發生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(請參閱下文)。

解決方案:卸載微軟的Visual C++ 2010可再發行組件安裝之前的Windows SDK安裝。

在安裝之前,我有下面的Microsoft Visual C++ 2010可再發行組件的安裝。請注意,x 64版本已更新。

  • 的Microsoft Visual C++ 2010再發行X 64微軟公司10.0.40219 15.2 MB 10.0.40219
  • 的Microsoft Visual C++ 2010再發行-X 86 10.0.30319微軟公司11.0 MB 10.0.30319