重新安装 Visual Studio 2015 [英] ReInstall Visual Studio 2015

查看:100
本文介绍了重新安装 Visual Studio 2015的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Win 10 版本的 Visual Studio 2015 社区版无法加载,出现错误找不到一个或多个组件.请重新安装应用程序".

My Win 10 version of Visual Studio 2015 Community edition failed to load with error "cannot find one or more components .Please reinstall the application".

我尝试修复它,但收到了无法描述的错误,因此取消了修复(也报告了类似的错误,最终 120 个组件中的 116 个已修复 - iirc).

I've tried repairing it but received nondescript errors so cancelled the repair (which also reported similar errors and eventually that 116 out 120 components had been repaired - iirc).

然后我尝试卸载,但导致 Windows 崩溃.

I then tried an uninstall, but that crashed windows.

重新启动时,会显示 VS 2015 卸载选项屏幕.再次尝试卸载,但进度条没有移动.取消成功.

On reboot, the VS 2015 uninstall options screen was displayed. Tried uninstall again but progress bar wasn't moving. Successfully cancelled it.

如何让 VS 2015 的工作副本再次运行(不破坏我机器上的其他任何东西)?我可以在旧副本的顶部重新安装新副本吗?

How do I get a working copy of VS 2015 running again (without breaking anything else on my machine)? Can I reinstall a new copy over the top of the old one?

提前致谢.

推荐答案

在执行重装之前,您需要完全卸载VS community 2015,并提供如下2种卸载方法:

Before you perform the reinstall, you need to completely uninstall the VS community 2015 and provides 2 uninstall methods as below:

  1. 强行卸载命令删除:

• 在提升的命令提示符中运行命令可执行文件/uninstall/force,如 vs_community.exe/uninstall/force.更重要的是,你可以看到这里.

• Run the command executable file /uninstall /force like vs_community.exe /uninstall /force in the elevated command prompt. What’s more, you can see here.

• 重新启动计算机

• 重命名或删除文件夹-

• Rename or delete folders-

C:\Program Files (x86)\Microsoft Visual Studio 14.0

C:\Program Files (x86)\Microsoft Visual Studio 14.0

C:\Program Files\Microsoft Visual Studio 14.0

C:\Program Files\Microsoft Visual Studio 14.0

C:\users\user\Documents\Visual Studio 2015

C:\users\user\Documents\Visual Studio 2015

C:\users\user\AppData\Roaming\Microsoft\VisualStudio\14.0

C:\users\user\AppData\Roaming\Microsoft\VisualStudio\14.0

C:\users\user\AppData\Local\Microsoft\VisualStudio\14.0

C:\users\user\AppData\Local\Microsoft\VisualStudio\14.0

C:\users\user\AppData\Local\Microsoft\VSCommon\14.0

C:\users\user\AppData\Local\Microsoft\VSCommon\14.0

• 转到注册表编辑器(开始 >> 运行 >> regedit)并删除/重命名以下注册表-

• Go to the registry editor (start >> run >> regedit) and remove/rename the following registries-

一个.HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0

a. HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0

B.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0

b. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0

c.HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0

c. HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0

d.HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config

d. HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config

  1. Visual Studio 卸载程序工具:https://github.com/Microsoft/VisualStudioUninstaller/releases.

在下次安装之前,请确保 windows update 是最新的,暂时禁用所有杀毒软件并清理 %temp% 文件夹,使用 VS community 2015 的健康 ISO 文件和更新 3 进行安装,运行以管理员身份安装.

Before the next installation, make sure windows update is up-to-date, temporarily disable any antivirus software and clean up the %temp% folder, use a healthy ISO file of VS community 2015 with update 3 to install, run the installer as administrator.

这篇关于重新安装 Visual Studio 2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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