简体   繁体   English

由于Microsoft.DiagnosticsHub.KB2882822错误,Visual Studio 2017安装失败

[英]Visual Studio 2017 install fails due to Microsoft.DiagnosticsHub.KB2882822 error

anybody an idea why this might fail? 有人知道为什么这可能会失败吗? VS2017 installation stops with that error in the log. VS2017安装停止,并在日志中显示该错误。 I had similar issue with VS2017 RC builds. 我在VS2017 RC版本中遇到了类似的问题。

Package 'Microsoft.DiagnosticsHub.KB2882822.Win7,version=15.0.25904.2,chip=x64' failed to install. Return code: 0, Details: Invalid source and/or destination paths

The issue is most likely that the windows username has a space in it and when one portion of the installer wants access to a temp folder under the user profile directory it throws an error due to a bug because it can't handle the space in the username. 问题很可能是Windows用户名中有一个空格,当安装程序的一部分要访问用户配置文件目录下的temp文件夹时,由于错误而引发错误,因为它无法处理Windows用户名中的空格。用户名。 (Shout out to Wong Man Wei who identified the root cause!) (向黄曼伟大喊,后者找出了根本原因!)

A work around, is to create a new user on the machine that does not have a space in the name. 解决方法是在名称中没有空格的计算机上创建一个新用户。 Then run the installer again and repair the existing install that was done from the other user and the repair will work successfully since it has access to a temp directory under this user that has no space in the name. 然后再次运行安装程序,并修复由其他用户完成的现有安装,由于该用户可以访问名称中没有空格的该用户下的temp目录,因此修复将成功进行。

Now once the repair is successful you can delete this user account and go back to using the one with the space in it. 现在,一旦修复成功,您可以删除该用户帐户,然后返回使用其中有空格的帐户。

One possible reason this could occur is that antivirus programs are being configured to be more aggressive at blocking executable files running from a temp directory. 可能发生这种情况的一个可能原因是,防病毒程序被配置为更积极地阻止从temp目录运行的可执行文件。 The installation of this component executes DISM.EXE which in turn executes DISMHOST.EXE from the user APPDATA\\LOCAL\\TEMP folder. 安装此组件后,将执行DISM.EXE,后者再从用户APPDATA \\ LOCAL \\ TEMP文件夹中执行DISMHOST.EXE。

The quickest way to confirm this is to temporarily disable your antivirus program. 确认这一点的最快方法是暂时禁用防病毒程序。 The safer way to confirm this would be to review your antivirus program configuration and corresponding log files. 确认这一点的更安全方法是查看防病毒程序配置和相应的日志文件。

暂无
暂无

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

相关问题 Visual Studio 2017安装失败并出现软件包安装错误 - Visual Studio 2017 installation fails with package install error 由于证书无效,无法安装 Microsoft Visual Studio 2017 安装程序项目 - Cannot install Microsoft Visual Studio 2017 Installer Projects due to invalid certificate Visual Studio Community 2017 全新安装错误 - Visual Studio Community 2017 Fresh Install Error Visual Studio 2017联机构建代理由于无法找到Visual Studio 15.0而失败 - Visual Studio 2017 online build agent fails due to inability to find Visual Studio Version 15.0 每次精确安装5%之后,Visual Studio 2017仍无法安装……? - Visual Studio 2017 fails to install after exactly 5 percent every time…? Visual Studio 2017无法脱机安装“无法下载安装文件” - Visual Studio 2017 fails to install offline with “Unable to download installation files” 如何修复 Visual Studio 2017 社区安装错误 - 无法下载“Microsoft.VisualStudio.WCF.DiagnosticPack.Msi.msi”? - How to fix Visual Studio 2017 Community install error - Couldn't download 'Microsoft.VisualStudio.WCF.DiagnosticPack.Msi.msi'? 在Visual Studio 2017上安装Monogame - Install Monogame on Visual Studio 2017 在 Visual Studio 2017 上安装 Xamarin - Install Xamarin on Visual Studio 2017 Pygraphviz的Python 3 pip安装失败,“需要Microsoft Visual C ++”,安装了Visual Studio 2017 - Python 3 pip installation of pygraphviz fails, “Microsoft Visual C++ is required”, Visual Studio 2017 is installed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM