gpt4 book ai didi

.net - 如何完全卸载 Visual Studio 2010?

转载 作者:可可西里 更新时间:2023-11-01 11:53:20 34 4
gpt4 key购买 nike

我一直在寻找一个干净的解决方案来完全并最终从我的计算机中删除 Visual Studio 2010。当您安装 Visual Studio 时,它还会在添加/删除程序面板 (appwiz.cpl) 中安装一堆程序(大约 55 个)。

我已经尝试过 Microsoft 制作的一个小实用程序,但它几乎什么都不做。

我现在真的在寻找一种更好的方法来卸载任何版本的 Microsoft Visual Studio。因为我有很多电脑,所以我经常切换到一个或另一个版本,或者我只是决定我不再需要在一台电脑上使用它来取回一些空间。

真的,最好的解决方案是什么?如果没有,为什么 Microsoft 没有开发出一种实际运行良好的产品?

最佳答案

2016 年 4 月更新 - 适用于 VS2013+

Microsoft 于 2015 年底开始通过发布 VisualStudioUninstaller 来解决该问题.

他们暂时放弃了解决方案;然而工作又开始了again as of April 2016 .

终于有了一个official release 2016 年 4 月针对此卸载程序,它被描述为“旨在清理/烧毁 Visual Studio 2013、Visual Studio 2015 和 Visual Studio vNext 的所有预览版/RC/RTM 版本”。


原始答案 - 适用于 VS2010、VS2012

请注意,以下两种解决方案仍然会留下痕迹(例如注册表文件),不能真正被视为“干净”卸载(请参阅答案的最后部分以获得完全干净的解决方案)。


解决方案 1 - 适用于:VS 2010

Microsoft 提供了一个名为 Visual Studio 2010 Uninstall Utility 的卸载程序.它带有三个选项:

  1. 默认 (VS2010_Uninstall-RTM.ENU.exe)
  2. 完全 (VS2010_Uninstall-RTM.ENU.exe/full)
  3. 完成 (VS2010_Uninstall-RTM.ENU.exe/full/netfx)

上面的链接更详细地解释了卸载程序 - 我建议在使用它之前阅读文章中的评论,因为有些人已经注意到安装服务包时出现的问题(和解决方法)。之后,使用类似 CCleaner 的东西删除剩余的注册表文件。

Here is the link to the download page of the VS2010 UU .


解决方案 2 - 适用于:VS 2010、VS 2012

Microsoft 提供了一个uninstall/force 功能,可以从您的计算机中删除大部分 VS2010 或 VS2012 的残余。

MSDN: How to uninstall Visual Studio 2010/2012 .来自链接:

Warning: Running this command may remove some packages even if they arestill in use like those listed in Optional shared packages.

  1. Download the setup application you used to originally install Visual Studio 2012. If you installed from media, please insert that media.
  2. Open a command prompt. Click Run on the Start menu (Start + R). Type cmd and press OK (Enter).
  3. Type in the full path to the setup application andpass the following command line switches: /uninstall /force Example:D:\vs_ultimate.exe /uninstall /force
  4. Click the Uninstall button and follow the prompts.

之后,使用类似 CCleaner 的东西删除剩余的注册表文件。


彻底卸载?

遗憾的是,实现这一目标的唯一(当前)方法是 follow dnLL's advice in their answer并执行完整的操作系统重新安装。然后,将来您可以在虚拟机中使用 Visual Studio,而不必再担心这些问题。

关于.net - 如何完全卸载 Visual Studio 2010?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12584912/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com