Visual Studio 2015社区安装失败 [英] Visual Studio 2015 Community Installation Failure
问题描述
尝试安装Visual Studio 2015时遇到问题.有一次,它甚至无法运行.iso文件.
I'm encountering a problem while attempting to install Visual Studio 2015. At one point, it wasn't even able to run an .iso file.
我遵循了以下技巧: 在团队中安装Visual Studio 2015 Enterprise Update 1时出错资源管理器
I followed tips from: Error Installing Visual Studio 2015 Enterprise Update 1 with Team Explorer
那给了我一段时间希望,并且安装似乎可以正常工作,但是随后我得到了这个
That gave me hope for a while, and the installation appeared to be working, but then I got this error.
接下来我应该尝试什么?我在这里尽头了.
What should I attempt next? I'm at the end of my rope here.
推荐答案
我在一般的"TeamExplorer/vs_teamExplorerCore"错误中遇到了类似的问题,并最终安装了 Visual Studio 2015 Community Edition Update 2 Windows 7上的这些步骤(其中一些概述如下此处.)
I had a similar issue with the general "TeamExplorer/vs_teamExplorerCore" error and finally got Visual Studio 2015 Community Edition Update 2 to install with these steps on Windows 7 (some of which are outlined here and here.)
自从您说您已经在第一篇文章中尝试了至少一些步骤之后,我会注意到直到多次合并失败后,我才组合步骤(并添加了几个步骤)才对我有用.我以前曾尝试过一些步骤,没有运气.
Since you said you have tried at least some steps in the first article, I will note that it wasn't until I combined steps (and added a couple) that this worked for me after multiple repeated failures. I had previously tried some steps individually without any luck.
注意:如果由于某种原因(而不是概述的所有步骤),您仅对尝试使用VS 2015 Community RTM安装程序感兴趣,我已在该文件的底部列出了该文件的链接.这个答案.
Note: If you are only interested in trying the VS 2015 Community RTM installer for some reason (rather than all the steps outlined), I have listed a link to just that file at the bottom of this answer.
我依次采取的步骤是:
1.)更新Windows -确保Windows是最新的(必要时包括重新启动).
1.) Update Windows - Make certain Windows is up to date (as necessary, including reboots).
2.)启用以下所有四个评估:符号链接:
-
检查是否已启用所有四个评估.运行cmd.exe(以管理员身份运行):
Check to see if all four evaluations are enabled. Run cmd.exe (Run as Administrator):
fsutil behavior query SymlinkEvaluation
应启用所有4个评估.如果不是,则:
All 4 evaluations should be enabled. If they aren't:
fsutil behavior set SymlinkEvaluation L2L:1 R2R:1 L2R:1 R2L:1
设置完这四个评估后,请清理旧目录/注册表项,临时文件和程序包安装缓存(如下).
Once those 4 evaluations are set, clean up your old directories/registry keys, temporary files and package installation cache (below).
3.)在控制面板"中卸载VS 2015的所有条目-如果在添加/删除程序"部分中存在,请卸载VS 2015的所有条目.
3.) Uninstall any entry for VS 2015 in the Control Panel - If present in the Add/Remove Programs section, uninstall any entry for VS 2015.
注意:我没有手动卸载在失败的安装过程中安装的任何依赖项(例如.NET x.x.x,IIS 10 Express等).
Note: I did not manually uninstall any of the dependencies that were installed during the failed installation (e.g. .NET x.x.x, IIS 10 Express, etc.).
4.)清除旧版VS 2015 文件,文件夹和注册表项:
C:\Program Files (x86)\Microsoft Visual Studio 14.0
C:\Program Files\Microsoft Visual Studio 14.0
C:\users\user\Documents\Visual Studio 2015
C:\users\user\AppData\Roaming\Microsoft\VisualStudio\14.0
C:\users\user\AppData\Local\Microsoft\VisualStudio\14.0
C:\users\user\AppData\Local\Microsoft\VSCommon\14.0
注意:当然,前两个可能会有所不同,具体取决于您尝试安装VS 2015的位置.
Note: Of course the first two might be different depending on where you attempted to install VS 2015.
使用以下命令清除注册表项:
Clear your registry entries with:
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0
REG DELETE HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0
REG DELETE HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config
5.)删除缓存或临时项-完全删除
C:\ProgramData\Package Cache
和
C:\Users\UserName\AppData\Local\Temp
注意:如果您愿意,可以对温度进行选择,因为某些项目显然与VS无关.
Note: Temp you can be more selective with if you like since some items will be clearly unrelated to VS.
6.)卸载以前的可再发行文件-卸载您可能拥有的任何先前的可再发行文件.我特别指出了要卸载2015的所有三个副本(RC,Update 1和Update 2).
6.) Uninstall previous redistributables - Uninstall any previous redistributables you may have. I made it a particular point to uninstall all three copies of 2015 (RC, Update 1 and Update 2).
如果您不确定要全部卸载这三个版本,我建议至少执行Update 2,即使您不理会其他两个版本(因为我假设您正在尝试安装VS 2015 Update 2).
If you are unsure about uninstalling all three, I would suggest at least doing Update 2, even if you leave the other two alone (since I am assuming you are attempting to install VS 2015 Update 2).
我以前手动删除过:
c:\windows\System32\vcruntime140.dll
c:\windows\SysWOW64\vcruntime140.dll
但在此处概述的最终尝试中没有这样做.
but did not do this on the final attempt outlined here.
注意:卸载它们时,请确保它们未被使用.如果您收到任何投诉,请先停止所有相关程序,然后再继续.
Note: Make sure these are not in use when you uninstall them. If you receive any complaints, stop any associated programs before continuing.
7.)重新启动PC.
8.)暂时禁用AntiVirus(如果有)-我使用的品牌可以禁用所有项目,直到我选择的时间为止.
8.) Temporarily disable AntiVirus, if any - The brand I use has the ability to disable all items until a time of my choosing.
注意:我建议,如果您的程序在禁用项目上有时间限制,则应确保在尝试安装VS 2015时未达到该时间限制.
Note: I would suggest that if your program has a time limit on disabling items, you ensure that time limit is not reached while attempting to install VS 2015.
9.)使用清理所有剩余的注册表项 ="a href =" https://www.piriform.com/ccleaner/download"rel =" nofollow noreferrer> CCleaner ,根据需要-在我的情况下,卸载最后一次VS 2015失败的尝试后仍然遗留了一些未使用的密钥.
9.) Clean up any remaining registry entries with CCleaner, as needed - In my scenario, there were still some unused keys left over after uninstalling the last VS 2015 failed attempt.
10.)手动重新安装VC ++可再发行文件-在我的方案中已重新安装了所有VC ++ 14版本,但我将特别关注Update 2或您要安装的任何版本.
10.) Reinstall VC++ redistributables manually - all VC++14 versions were reinstalled in my scenario but I would be especially concerned with Update 2 or whatever you are trying to install.
我用于Update 2的可再发行文件是版本14.0. 23918 .
The redistributables I used for Update 2 were version 14.0.23918.
11.)使用适合您的安装的VS Studio RTM安装程序-
11.) Use the VS Studio RTM installer appropriate to your installation - Per the chosen answer here, there may be a problem with using the current installer for VS 2015 Update 1 or Update 2.
对于我的情况尤其如此:
For my scenario particularly I:
Downloaded the Visual Studio 2015 Community Edition RTM ISO. (SHA1:BAAD3CEBAB7A5834D8F78F7D02E4880C010F3BA9)
已复制安装程序"vs_community.exe".对于这种情况,我没有使用ISO内容,所以我将其卸载.
Copied the installer "vs_community.exe". For this scenario, I was not using the ISO contents, so I unmounted it.
Ran 目录中的RTM安装程序没有空格.我不确定这是否绝对必要,但是
Ran the RTM installer from a directory without spaces. I am unsure if this was strictly necessary, but a comment made elsewhere a long time ago seemed to indicate that this might be a potential problem.
已使用默认安装目录(C:\ Program Files(x86)\ Microsoft Visual Studio 14).以前,我曾使用过安装自定义目录.
Used the default installation directory (C:\Program Files (x86)\Microsoft Visual Studio 14). Previously, I had used a installation custom directory.
Had 大约有20-25GB的免费空间,因为有很多要下载和安装的空间. = P
Had about 20-25GB free, since there is a lot to download and install. =P
If you need other VC 2015 RTM ISOs other than for Community, links can be found at this blog post.
If you trust strangers on the internet, this is a link for the VS 2015 Community RTM installer (only) I used, no 3.9GB ISO download required. =P
关于安装程序,正如我提到的,我不必使用RTM ISO. RTM安装程序会像Update 1或Update 2的安装程序一样提取Web更新.
Regarding the installer, as I mentioned, I did not have to use the RTM ISO. The RTM installer pulls web updates just like the installer for Update 1 or Update 2.
使用RTM安装程序,我通过Web成功安装了VS 2015 Update 2,具有所有可选的C ++选择,适用于Visual Studio的Python工具和带有Microsoft CodeGen的Clang.我选择不安装Web开发工具,但是我不相信这会有所作为,因为在成功安装之前我以前曾遇到TeamExplorer Core错误,而未选择任何选项.
Using the RTM installer I successfully installed VS 2015 Update 2 with all optional C++ selections, Python Tools for Visual Studio and Clang with Microsoft CodeGen via the web. I chose not to install the Web Development Tools, but I don't believe this made a difference since I had previously had the TeamExplorer Core error prior to successful installation with no options selected whatsoever.
这篇关于Visual Studio 2015社区安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!