Visual Studio 2013/2015完全卸载
- 2020 年 3 月 27 日
- 筆記
在前一篇讲解了关于 Visual Studio 2008 卸载,如果安装的是 Visual Studio2013或者 Visual Studio2015呢?
一.查找对应的vs_community.exe文件
Visual Studio一共有三个版本:
如果是企业版:vs_enterprise.exe
如果是社区版:vs_community.exe
如果是专业版:vs_professional.exe
在C盘的搜索框内输入 vs_community.exe (我的是社区版)或者直接使用 Everything 搜索,输入后进行搜索,搜索的结果如下:
右击该程序,点击“打开文件的所在位置”,记住并复制该路径,比如我的路径为:C:ProgramDataPackage Cache{47e285fc-2ff5-479e-9c14-4258d9954215}
二.以管理身份打开cmd窗口
cd 到刚才复制的路径,然后输入命令行:vs_community.exe /uninstall /force(会跳出vs窗口,等它运行结束就行了,时间有点长。。。)
如果是企业版:vs_enterprise.exe /uninstall /force
如果是社区版:vs_community.exe /uninstall /force
如果是专业版:vs_professional.exe /uninstall /force

1.必须是管理员身份运行cmd窗口;
2.如果是自己手动输入,那么一定要是在英文输入法下输入,还有vs_community.exe /uninstall /force这行代码中间有两个空格,一定要加上;
三.使用微软官方的卸载工具来清理残余数据
1.下载清理工具
在卸载完成后必须要清理掉残留数据,以防止再次安装或更换别的版本无法安装,此时需要使用微软官方的卸载工具来清理,其最新版本下载地址为: https://github.com/Microsoft/VisualStudioUninstaller/releases