无法安装Visual Studio 2017(结果代码0x0、0x2) [英] Unable to install Visual Studio 2017 (result code 0x0, 0x2)

查看:444
本文介绍了无法安装Visual Studio 2017(结果代码0x0、0x2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去两个小时,我一直在尝试安装Visual Studio 2017 RC,但到目前为止,我还无法安装任何版本的Visual Studio.我已经尝试过寻找解决方案,但到目前为止还没有.

I have been trying to install Visual Studio 2017 RC for the past two hours but so far, I have not been able to install any version of Visual Studio. I have tried looking around for solutions, but so far nothing.

这是运行安装程序的映像.这是尽可能的远了.

完成此操作后,安装程序将退出并杀死自身,并且不会进行任何安装.等待了一段时间,没有任何反应.任务管理器和资源管理器中均未运行任何安装程序应用程序,因此,我假设它在达到目标值后立即出现.

After doing this, the installer just exits and kills itself and no installation happens. Waited for a while and nothing happens. No installer applications running in both task manager and resource manager, so I'm assuming it right after it reaches that.

有什么想法吗?

这台计算机是干净的,以前从未安装过或从未尝试安装过任何版本的MS Visual Studio.

This computer is clean and has never install or attempt to install any version of MS Visual Studio before.

[1/17/2017, 16:12:46] === Logging started: 2017/01/17 16:12:46 ===
[1/17/2017, 16:12:46] Executable: C:\Users\xxxxx\Downloads\vs_Community.exe v15.0.26020.0
[1/17/2017, 16:12:46] --- logging level: standard ---
[1/17/2017, 16:12:46] Directory 'C:\Users\xxxxx\AppData\Local\Temp\2a6df70b7a7d7cb06efead\' has been selected for file extraction
[1/17/2017, 16:12:46] Extracting files to: C:\Users\xxxxx\AppData\Local\Temp\2a6df70b7a7d7cb06efead\
[1/17/2017, 16:12:47] Extraction took 828 milliseconds
[1/17/2017, 16:12:47] Executing extracted package: 'vs_bootstrapper_d15\vs_setup_bootstrapper.exe ' with commandline ' '
[1/17/2017, 16:12:49] The entire Box execution exiting with result code: 0x0
[1/17/2017, 16:12:49] Launched extracted application exiting with result code: 0x2
[1/17/2017, 16:12:49] === Logging stopped: 2017/01/17 16:12:49 ===

推荐答案

我遇到了同样的问题,结果发现安装的某些部分试图从配置中读取并失败.运行几次后,它最终创建了一个名为"VSFaultInfo"的文件夹,其中包含一个ConfigurationErrorsException.

I had the same problem, and it turns out that some part of the installation was trying to read from a config and failing. After running it a few times, it eventually created a folder called "VSFaultInfo", and it contained a ConfigurationErrorsException.

我的问题是我曾经编辑过machine.config,并且安装程序尝试读取它时出现异常.当我撤消所做的修改时,它已安装.我的配置位于"C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Config"下,但对您来说可能有所不同.尝试将其删除或在计算机上找到VSFaultInfo文件夹.

My problem was that I edited my machine.config at one point, and the installer was getting an exception from trying to read from it. It installed when I undo-ed the modifications I made. My config was located under "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config", but it might be different for you. Try to delete it or find a VSFaultInfo folder on your computer.

这篇关于无法安装Visual Studio 2017(结果代码0x0、0x2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆