简体   繁体   English

Windows 10 SDK无法安装到Visual Studio

[英]Windows 10 SDK won't install to Visual Studio

I've been trying to get Visual Studio and the Windows 10 SDK to work for over a week now. 我一直在努力让Visual Studio和Windows 10 SDK工作一周以上。 First I couldn't install Visual Studio. 首先我无法安装Visual Studio。 That problem was resolved by uninstalling EVERYTHING vaguely related to VS2015, thanks to manually going through everything, but also the Visual Studio "TotalUninstaller". 通过手动浏览所有内容,以及Visual Studio“TotalUninstaller”,卸载与VS2015模糊相关的一切都解决了这个问题。

Plot twist: Now that I've managed to get VS2015 installed and running, I can't get the SDK to install. 情节扭曲:现在我已经设法安装并运行VS2015,我无法安装SDK。 I've selected it with the installation process, tried to modify VS after, tried to install it with the Standalone installer, but none of it works. 我已经在安装过程中选择了它,尝试修改VS之后,尝试使用Standalone安装程序安装它,但它都不起作用。 Every time, the installer doesn't notice anything wrong, all the tools appear in the start menu, a new "Program Files (x86)/WindowsKits/10.0" folder appears, with all the correct files, but VS can't open any UWP projects, can't create new any, and the SDK doesn't appear in the Extensions list. 每次,安装程序都没有发现任何错误,所有工具都出现在开始菜单中,出现一个新的“Program Files(x86)/WindowsKits/10.0”文件夹,包含所有正确的文件,但VS无法打开任何文件UWP项目,无法创建任何新项目,并且SDK不会出现在“扩展名”列表中。

When I uninstalled everything, there was only one thing I couldn't get rid of: "Windows 10 for Mobile Image - 10.0.10240.0". 当我卸载所有东西时,只有一件事我无法摆脱:“Windows 10 for Mobile Image - 10.0.10240.0”。 It just opens, runs for a second, and closes, achieving nothing in the process. 它只是打开,运行一秒钟,然后关闭,在此过程中什么都不做。 As I couldn't get rid of this, I manually deleted any "Windows Kits" related folder in Program Files, Program Files (x86), ProgramData, and anything in the AppData folder. 由于我无法摆脱这种情况,我手动删除了Program Files,Program Files(x86),ProgramData以及AppData文件夹中的任何“Windows Kits”相关文件夹。 But this piece of fluffy garbage didn't leave my installed programs list. 但这片蓬松的垃圾并没有留下我已安装的程序列表。 Could this have something to do with not being able to install the Windows 10 SDK correctly? 这可能与无法正确安装Windows 10 SDK有关吗?

I looked in the install logs, and this is the only error I saw: 我查看了安装日志,这是我看到的唯一错误:

[371C:398C][2016-08-08T21:13:35]i301: Applying execute package: {7a68448b-9cf2-4049-bd73-5875f1aa7ba2}, action: Install, path: C:\ProgramData\Package Cache\{7a68448b-9cf2-4049-bd73-5875f1aa7ba2}\vsupdate_KB3022398.exe, arguments: '"C:\ProgramData\Package Cache\{7a68448b-9cf2-4049-bd73-5875f1aa7ba2}\vsupdate_KB3022398.exe" -quiet -burn.related.patch -burn.ignoredependencies={248fcd1e-5ee1-421d-893f-ec0a94dd7b01} -burn.ancestors={248fcd1e-5ee1-421d-893f-ec0a94dd7b01}'
[371C:398C][2016-08-08T21:13:35]e000: Error 0x80070003: Failed to create embedded process atpath: C:\ProgramData\Package Cache\{7a68448b-9cf2-4049-bd73-5875f1aa7ba2}\vsupdate_KB3022398.exe
[371C:398C][2016-08-08T21:13:35]e000: Error 0x80070003: Failed to run embedded bundle.
[371C:398C][2016-08-08T21:13:35]e000: Error 0x80070003: Failed to run bundle as embedded from path: C:\ProgramData\Package Cache\{7a68448b-9cf2-4049-bd73-5875f1aa7ba2}\vsupdate_KB3022398.exe
[371C:398C][2016-08-08T21:13:35]e000: Error 0x80070003: Failed to execute EXE package.
[287C:137C][2016-08-08T21:13:35]e000: Error 0x80070003: Failed to configure per-machine EXE package.

It appears in every log when I try to install vs2015 with the right option ticked, or when I use the standalone installer. 当我尝试使用正确的选项安装vs2015时,或者当我使用独立安装程序时,它会出现在每个日志中。 I've looked in C:\\ProgramData\\Package Cache and there is no {7a68448b-9cf2-4049-bd73-5875f1aa7ba2} folder, and none of the other folders contain "vsupdate_KB3022398.exe". 我查看了C:\\ProgramData\\Package Cache ,没有{7a68448b-9cf2-4049-bd73-5875f1aa7ba2}文件夹,其他文件夹都没有包含“vsupdate_KB3022398.exe”。 It looks like this is the root of the problem. 看起来这是问题的根源。

EDIT: I've created the folder that was missing and added "vsupdate_KB3022398.exe" to it (found it online, hosted on a Microsoft server), and there are no more errors left. 编辑:我已经创建了丢失的文件夹并添加了“vsupdate_KB3022398.exe”(在线发现,托管在Microsoft服务器上),并且没有更多的错误。 However, the problem still isn't fixed. 但是,问题仍然没有解决。 The SDK simply refuses to show up. SDK只是拒绝显示。 I think I'm going to have to do a clean install. 我想我将不得不做一个干净的安装。

I had the issue of Windows 10 SDK 14393 failing to install on Windows 7 OS. 我有Windows 10 SDK 14393无法在Windows 7操作系统上安装的问题。 This problem occurred when installing as part of Visual Studio 2015 and also running the Standalone Installer for the Windows 10 SDK 14393. According to the logs, the Windows Desktop Extension SDK failed to install. 作为Visual Studio 2015的一部分进行安装并运行Windows 10 SDK 14393的独立安装程序时,会出现此问题。根据日志,Windows桌面扩展SDK无法安装。

As a work-around I installed Windows 10 SDK 10586 (Installed successfully) Then I installed Windows 10 SDK 14393 (Installed successfully) Both versions of the Windows 10 SDK appear as choices under Target Platform Version in Visual Studio 2015 for me. 作为解决方法,我安装了Windows 10 SDK 10586(已成功安装)然后我安装了Windows 10 SDK 14393(已成功安装)两个版本的Windows 10 SDK在Visual Studio 2015中作为目标平台版本下的选项显示为我。

Apparently the Windows 10 SDK 14393 installer is missing something which it requires to run successfully on Windows 7. (Something that must be present in the previous version) 显然Windows 10 SDK 14393安装程序缺少在Windows 7上成功运行所需的东西。(以前版本中必须存在的东西)

Sorry for the difficulty. 对不起,对不起。 There are 2 known issues that are causing 'Fatal Error' in the Windows SDK install. Windows SDK安装中有2个已知问题导致“致命错误”。
See the Windows SDK Tools Issues Forum. 请参阅Windows SDK工具问题论坛。

You probably have (had) a pre-release of the SDK and one of the contracts installed is causing MDMerge to fail during setup. 您可能已经预先发布了SDK,并且安装的其中一个合同导致MDMerge在安装过程中失败。 Uninstalling the prerelease version of the SDK should avoid this issue. 卸载SDK的预发布版本应避免此问题。

Thanks, kevin 谢谢,凯文

I had the MDMerge problem, after uninstalling all previous Windows 10 SDK toolkits, still couldn't install. 在卸载所有以前的Windows 10 SDK工具包之后,我遇到了MDMerge问题,仍然无法安装。 Fixed it by moving the contents of: "C:\\Program Files (x86)\\Windows Kits\\10", ran the installer again and it installed fine. 通过移动以下内容修复它:“C:\\ Program Files(x86)\\ Windows Kits \\ 10”,再次运行安装程序并安装正常。

This is what I did and it kind of worked for me. 这就是我所做的,它对我有用。 Remove everything in the linker ( PROJECT -> LINKER -> Input -> Additional Dependencies, as can be seen in this screenshot 删除链接器中的所有内容(PROJECT - > LINKER - > Input - > Additional Dependencies,如此屏幕截图中所示

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2015社区不会安装Windows SDK - Visual Studio 2015 community won't install Windows SDK . 找不到Windows 10 SDK,如果构建失败,请在Visual Studio中安装Windows 10 SDK - ! Unable to locate a Windows 10 SDK. If building fails, install the Windows 10 SDK in Visual Studio Visual Studio 2013 Ultimate不会安装Windows 7 SP1 - Visual Studio 2013 Ultimate won't install Windows 7 SP1 Windows SDK 10 安装程序无法运行 - Windows SDK 10 setup won't run Visual Studio 2010 SDK不会随VS 11 Developer Preview Present一起安装 - Visual Studio 2010 SDK won't install with VS 11 Developer Preview Present 无法从Windows 10 Visual Studio安装Xamarin.iOS 11.14 - Can't install Xamarin.iOS 11.14 from Windows 10 Visual Studio Windows 10 SDK / Visual Studio:目标机器需要哪些依赖项? - Windows 10 SDK / Visual Studio: What dependencies are required on target machines? 无法在 windows 10 中安装 Visual Studio 2019 社区版 - Unable to install visual studio 2019 community edition in windows 10 我应该将Windows 8.1 SDK或Windows 10 SDK与Visual Studio 2017一起用于标准C ++吗? - Should I use Windows 8.1 SDK or Windows 10 SDK with Visual Studio 2017 for standard C++? 及时调试器不会安装在Visual Studio 2017中 - Just in time debugger won't install in Visual Studio 2017
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM