Failed to install Windows 10 SDK v10.0.10586 for Visual studio 2015 professional, Windows 7

泪湿孤枕 提交于 2021-01-07 02:35:54

问题


I uninstalled visual studio 2015 because I was trying to fix another issue I was having, and it was suggested an uninstall/install might fix it.

1) I went through programs and features, found VS2015, selected change, then uninstalled VS2015.

2) rebooted

3) I tried the install again, making sure windows SDK 10.0.10586 was selected and I received this message after the install completed:1

The log has these error messages: [2094:210C][2018-08-15T12:07:34]i000: MUX: Updating secondary installer progress display name: Outer=Windows 10 SDK (10.0.10586), Inner= [2080:2084][2018-08-15T12:08:42]e000: Error 0x80048646: Process returned error: 0x80048646 [2080:2084][2018-08-15T12:08:42]e000: Error 0x80048646: Failed to execute EXE package. [2094:2098][2018-08-15T12:08:42]e000: Error 0x80048646: Failed to configure per-machine EXE package.

4) rebooted

5) I tried a repair and then modify, I get the same message.

6) rebooted

I did not readily find a solution online, but I did find a suggestion to try downloading it from Windows SDK archive: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive

7) After trying to run the install or the download, I get this:2 I am certainly connected to the internet. So then I dig more into the error message, and I came across this guide: https://codedocu.com/Details?d=1588&a=9&f=54&l=0&v=d

It suggests clearing the package cache before modifying the install to add windows SDK. This is where things get weird...

8) I clear my package cache, then go back to programs and features, and VS2015 is GONE. However, the shortcut on my desktop still works, VS2015 executes, no problem, but I can't modify the install.

9) rebooted

10) Re-install VS2015 so it would show on the programs and features list again. It still failed to install the SDK, but I wasnt expecting it to work that time.

11) rebooted

12) I tried a complete wipe of VS2015 because I know the uninstall doesn't really get rid of everything. There is a great tool for that here: https://github.com/Microsoft/VisualStudioUninstaller/releases I ran the uninstaller, confirmed that it worked.

13) rebooted

14) Ran the installer again ( with windows SDK selected), and I get the same error message after the install completed:1. I don't know what else to try, if anyone has a suggestion, that would be greatly appreciated.


回答1:


Since MSFT no longer provides an ISO for this build, magicandre1981 built his own and uploaded it (see comments). That install ran fine and I can compile again!




回答2:


(Not directly related to the Question, but) If anyone wants to cleanup their installed SDKs (like I did) and runs into the problem where neither installing nor uninstalling Windows SDK 10.0.10586 works and has the following in their install log:

CAQuietExec:  Creating UnionWinMD using mdmerge tool
CAQuietExec:  MDMerge failed. Please check See MDMerge tool logs at C:\Users\matth\AppData\Local\Temp\UnionWinmdWorkingFolder\Logs\10498-MDMerge.log and C:\Users\matth\AppData\Local\Temp\UnionWinmdWorkingFolder\Logs\10498-MDMerge.err
CAQuietExec:  Error 0x80070002: Command line returned an error.
CAQuietExec:  Error 0x80070002: CAQuietExec Failed

And in the referenced log

Processing input metadata file C:\Users\matth\AppData\Local\Temp\UnionWinmdWorkingFolder\17728\WinMDs\Windows.ApplicationModel.Activation.ActivatedEventsContract.winmd.

And in the error log


The system cannot find the file specified.
MDMERGE : error MDM2018: The type "Windows.ApplicationModel.Activation.IPrintTaskSettingsActivatedEventArgs" defined in file C:\Users\matth\AppData\Local\Temp\UnionWinmdWorkingFolder\17728\WinMDs\Windows.ApplicationModel.Activation.ActivatedEventsContract.winmd was referenced but could not be found.

I assume this is because it tries to execute a custom action which is meant to be running on installation. To get rid of it you can edit (and backup) C:\Program Files (x86)\Windows Kits\10\bin\x86\GenerateUnionWinMD.cmd to be an empty batch file (I just has a single echo). The uninstallation worked afterwards and the SDK is gone. I suggest uninstalling ALL SDKs and installing the ones you need afterwards just to be safe.

I post this here as it was the page I landed on when trying to find anyone running into this...



来源:https://stackoverflow.com/questions/51896049/failed-to-install-windows-10-sdk-v10-0-10586-for-visual-studio-2015-professional

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!