本文介绍如何卸载 Microsoft Visual Studio 2012 及其相关包,以及如何执行强制卸载。

原始产品版本: Visual Studio 2012
原始 KB 编号: 2771441

本文适用于 Visual Studio 2012 版本。 若要删除以前的预发布产品版本,请参阅 如何卸载 Visual Studio 2012 候选版本

如果要通过“候选发布”安装最新的 Visual Studio 2012 版本,则无需卸载 Visual Studio 2012 候选版本,因为 Visual Studio 2012 将升级到较新版本。

有关详细信息和已知的升级问题,请查看 安装 Visual Studio

若要手动删除 Visual Studio 2012 产品,建议先卸载主要产品或产品,例如 Visual Studio 2012 Ultimate。 然后,卸载可能安装的其他支持产品。

若要强制删除下面列出的大多数包,请参阅 强制删除 Visual Studio 2012

卸载 Visual Studio 不会删除或影响用户生成的资产,例如项目文件和自定义设置。 若要卸载 Visual Studio,请执行以下步骤:

  • 在以前称为 “添加或删除程序 ”或“ARP) ”的控制面板 (中打开程序 和功能 。 或者,可以按如下所示打开它。
  • 单击 “开始 ”菜单上的 “运行 ” (+ R) 。
  • 入控件appwiz.cpl 并按 Enter。
  • 从已安装的以下列表中卸载所有主产品 () 。 提示在控制面板中,可以搜索 Microsoft Visual Studio 2012 以相应地筛选产品列表。
  • Microsoft Visual Studio 2012 Ultimate
  • Microsoft Visual Studio 2012 Premium
  • Microsoft Visual Studio 2012 Professional
  • Microsoft Visual Studio 2012 Express for Windows 8
  • Microsoft Visual Studio 2012 Express for Web
  • 单击 “查看已安装的更新 ”。 卸载 Visual Studio 2012 类别下列出的任何更新。
  • 可选共享包

    (可选)卸载以下可能也随 Visual Studio 2012 一起安装的共享包。 有时,即使卸载包,包也可能仍会出现。 如果发生这种情况,请再次卸载它,因为已安装多个具有相同名称的包。

    系统可能会提示卸载产品可能会影响其他产品。

  • 仅当确定不再需要与包关联的功能时,请单击“ ”。
  • 单击 “否 ”以保留安装包。
  • 卸载包的顺序很重要;下面的列表指示应卸载包的顺序。 如果随后更新了版本号,则版本号可能比下面显示的版本号更新。 计算机上的其他产品也可以使用这些包。 这些产品包括 Visual Studio 2010 和 Visual Studio 2008。

  • Microsoft Web Deploy dbSqlPackage Provider - enu
  • Microsoft SQL Server Data Tools - enu (11.1.20627.00)
  • Microsoft SQL Server 2012 管理对象 (x64)
  • Microsoft SQL Server 2012 管理对象
  • Microsoft SQL Server系统 CLR 类型 (x64)
  • Microsoft SQL Server系统 CLR 类型
  • Microsoft SQL Server Compact 4.0 SP1 x64 ENU
  • Microsoft SQL Server Compact 4.0 SP1 ENU
  • Microsoft SQL Server 2012 Express LocalDB
  • Microsoft SQL Server Data Tools Build Utilities - enu (11.1.20627.00)
  • Microsoft SQL Server 2012 T-SQL 语言服务
  • Microsoft SQL Server 2012 命令行实用工具
  • Microsoft SQL Server 2012 Native Client
  • Microsoft SQL Server 2012 Data-Tier App Framework
  • Microsoft SQL Server 2012 Transact-SQL 编译器服务
  • Microsoft SQL Server 2012 Transact-SQL ScriptDom
  • SSDT 的先决条件
  • Microsoft Visual Studio 2010 Tools for Office 运行时 (x64)
  • Microsoft Visual Studio 2010 Tools for Office 运行时 (x86)
  • Microsoft ASP.NET MVC 3
  • Microsoft ASP.NET 网页
  • WCF RIA 服务 V1.0 SP2
  • Microsoft Web 平台安装程序 4.0
  • IIS 8.0 Express
  • Microsoft Web 部署 3.0
  • 我们不建议删除的重要系统更新

    Visual Studio 2012 还可以安装以下重要的系统更新。 建议将它们保留在系统上。 其中一些可能显示在 “已安装汇报 ”中,这些链接是 “程序”和“功能 ”中的链接。

    这些更新也可能由计算机上的其他产品(包括 Visual Studio 2010、Visual Studio 2008)或由你或其他开发人员使用这些产品生成的任何应用程序使用。

  • Microsoft Silverlight
  • Microsoft .NET Framework 4.5
  • Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.4148
  • Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.6161
  • Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4148
  • Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161
  • 如果发现一个或多个产品在卸载 Visual Studio 2012 后停止运行,请修复这些产品。

    强制删除 Visual Studio 2012

    还可以使用新的命令行开关删除 Visual Studio 2012 及其 可选共享包 。 如果安装了多个 Visual Studio 2012 产品,则所有常见包仍将保留,直到删除所有 VS2012 产品。

    即使你已卸载主产品,你仍然可以下载并使用它来运行以下命令以删除其余的包,但 .NET Framework 4.5 和 Visual C++ 运行时除外。

    运行此命令可能会删除某些包,即使它们仍在使用,如 可选共享包中列出的包

  • 下载最初安装 Visual Studio 2012 的安装程序应用程序。 如果从媒体安装,请插入该媒体。

  • 打开命令提示符。

  • 单击 “开始 ”菜单上的 “运行 ” (+ R) 。
  • 入 cmd 并按 Enter。
  • 键入安装程序应用程序的完整路径,并传递以下命令行开关:

    D:\vs_ultimate.exe /uninstall /force
    
  • 单击 “卸载 ”按钮,然后按照提示操作。

    如果有任何问题或遇到任何问题,请访问 Visual Studio 安装和安装论坛

  •