如何完全卸载Visual Studio 2010?

时间:2023-01-19 21:00:16

I've been looking to find a CLEAN solution to completely and ultimately remove Visual Studio 2010 from my computer. When you install Visual Studio, it also installs a bunch of programs (about 55) in the add/remove programs panel (appwiz.cpl).

我一直在寻找一个干净的解决方案,以彻底并最终从我的电脑上删除Visual Studio 2010。在安装Visual Studio时,它还会在add/remove programs面板(appwiz.cpl)中安装一些程序(大约55个)。

I've already tried a small utility made by Microsoft but it does almost nothing.

我已经尝试过微软生产的一款小工具,但它几乎什么都做不了。

I'm really looking now for a better way to uninstall any version of Microsoft Visual Studio. Because I have a lot of computers, I'm often switching to a version or another or I just decide that I don't need it anymore on one computer to get back some space.

我现在正在寻找一种更好的方法来卸载微软Visual Studio的任何版本。因为我有很多电脑,我经常切换到一个或另一个版本,或者我决定不再需要它在一台电脑上以获得一些空间。

Really, what's the best solution? If there isn't one, why haven't Microsoft developed one that is actually working well?

真的,最好的解决办法是什么?如果没有,为什么微软还没有开发出一个运行良好的软件呢?

11 个解决方案

#1


93  

Update April 2016 - for VS2013+

Microsoft started to address the issue in late 2015 by releasing VisualStudioUninstaller.

微软从2015年末开始着手解决这个问题,发布了VisualStudioUninstaller。

They abandoned the solution for a while; however work has begun again again as of April 2016.

他们暂时放弃了解决方案;然而,截至2016年4月,工作再次开始。

There has finally been an official release for this uninstaller in April 2016 which is described as being "designed to cleanup/scorch all Preview/RC/RTM releases of Visual Studio 2013, Visual Studio 2015 and Visual Studio vNext".

终于在2016年4月发布了这款uninstaller的官方版本,该版本被描述为“用于清理/烤焦所有Visual Studio 2013、Visual Studio 2015和Visual Studio vNext的预览/RC/RTM发布”。


Original Answer - for VS2010, VS2012

Note that the following two solutions still leave traces (such as registry files) and can't really be considered a 'clean' uninstall (see the final section of the answer for a completely clean solution).

请注意,以下两个解决方案仍然保留了跟踪(比如注册表文件),并且不能真正被认为是“干净”的卸载(请参见解决方案的最后一部分,以获得完全干净的解决方案)。


Solution 1 - for: VS 2010

解决方案1 - for: VS 2010

There's an uninstaller provided by Microsoft called the Visual Studio 2010 Uninstall Utility. It comes with three options:

微软提供了一个uninstaller,叫做Visual Studio 2010 Uninstall实用工具。它有三个选择:

  1. Default (VS2010_Uninstall-RTM.ENU.exe)
  2. 默认(VS2010_Uninstall-RTM.ENU.exe)
  3. Full (VS2010_Uninstall-RTM.ENU.exe /full)
  4. 全部(VS2010_Uninstall-RTM.ENU。exe /全部)
  5. Complete (VS2010_Uninstall-RTM.ENU.exe /full /netfx)
  6. 完成(VS2010_Uninstall-RTM.ENU。exe /全/ netfx)

The above link explains the uninstaller in greater detail - I recommend reading the comments on the article before using it as some have noted problems (and workarounds) when service packs are installed. Afterwards, use something like CCleaner to remove the leftover registry files.

上面的链接更详细地解释了卸载程序——我建议在使用本文之前阅读本文的注释,因为在安装服务包时,有些人已经注意到了问题(以及解决方案)。然后,使用CCleaner这样的命令删除剩余的注册表文件。

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

以下是VS2010 UU下载页面的链接。


Solution 2 - for: VS 2010, VS 2012

解决方案2 - for: VS 2010, VS 2012

Microsoft provide an uninstall /force feature that removes most remnants of either VS2010 or VS2012 from your computer.

微软提供了卸载/强制功能,可以从您的计算机中删除VS2010或VS2012的大部分残余。

MSDN: How to uninstall Visual Studio 2010/2012. From the link:

MSDN:如何卸载Visual Studio 2010/2012。从链接:

Warning: Running this command may remove some packages even if they are still 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. 下载用于最初安装Visual Studio 2012的安装应用程序。如果从媒体安装,请插入该媒体。
  3. Open a command prompt. Click Run on the Start menu (Start + R). Type cmd and press OK (Enter).
  4. 打开一个命令提示符。单击开始菜单上的Run (Start + R),输入cmd,按OK (Enter)。
  5. Type in the full path to the setup application and pass the following command line switches: /uninstall /force Example: D:\vs_ultimate.exe /uninstall /force
  6. 输入设置应用程序的完整路径,并通过以下命令行开关:/卸载/force示例:D:\vs_ultimate。exe /卸载/力
  7. Click the Uninstall button and follow the prompts.
  8. 单击Uninstall按钮并按照提示操作。

Afterwards, use something like CCleaner to remove the leftover registry files.

然后,使用CCleaner这样的命令删除剩余的注册表文件。


A completely clean uninstall?

一个完全干净的卸载吗?

Sadly, the only (current) way to achieve this is to follow dnLL's advice in their answer and perform a complete operating system reinstall. Then, in future, you could use Visual Studio inside a Virtual Machine instead and not have to worry about these issues again.

遗憾的是,实现这一点的唯一(当前)方法是按照dnLL的建议执行完整的操作系统重新安装。然后,将来,您可以在虚拟机中使用Visual Studio,而不必再担心这些问题。

#2


34  

This is the simplest way to remove all the packages. From an admin prompt:
wmic product where "name like 'microsoft visual%'" call uninstall /nointeractive

这是删除所有包的最简单方法。从一个管理提示:wmic产品,其中“像‘microsoft visual%’这样的名称”调用uninstall /nointeractive

Repeat for SQL etc by replacing visual% in above command with sql.

在上面的命令中用SQL替换掉visual%来重复SQL等等。

#3


23  

Put in your CD or mount your ISO. Run the setup program from the command prompt using the flags /uninstall /force

把你的CD或安装你的ISO。使用标志/卸载/强制从命令提示符运行安装程序

I actually had ran into this issue the other day and it worked wonders. =)

事实上,我前几天遇到了这个问题,它产生了奇效。=)

#4


20  

The only real clean way to uninstall VS (Visual Studio, whatever version it is) is to completely reinstall the whole OS. If you don't, more compatibility problems might surface.

卸载VS (Visual Studio,无论它是什么版本)的唯一真正干净的方法是完全重新安装整个操作系统。如果不这样做,可能会出现更多的兼容性问题。

Permanent solution

永久的解决方案

Starting from scratch (clean install, VS never installed on the OS), the best way to avoid all those problems is to install and run VS from a VM (virtual machine) as stated by Default in the comments above. This way, and as long as Microsoft doesn't do anything to improve its whole platform to be more user-friendly, switching from a version to another will be quick and easy and the main partition of the HDD (or SSD in my case) won't be filed with all the garbage that VS leaves behind.

从头开始(清理安装,VS从未安装在操作系统上),避免所有这些问题的最好方法是安装和运行VM(虚拟机),如上面的注释所述。这样,只要微软不会做任何事来改善其整体平台更用户友好的,从一个版本切换到另一个快速简单,硬盘的主分区(或SSD在我的例子中)不会向所有VS留下的垃圾。

Of course, the disadvantage is speed. The program will be slower in pretty much every way. But honestly, who uses VS for its speed? Even on the latest enthusiast-platforms, it takes ages to install. Even if VS might start up faster on a high-end SSD, it's just slow.

当然,缺点是速度。这个程序在各个方面都将会变慢。但老实说,谁用VS来表示速度呢?即使是在最新的热情平台上,安装也需要很长时间。即使VS可能在高端SSD上启动得更快,也只是很慢。

#5


5  

Struggled with the same problem: Many applications, BUT make at least this part "pleasant": The trick is called Batch-Uninstall. So use one of these three programs i can recommend:

遇到了同样的问题:许多应用程序,但至少使这部分“令人愉快”:这个技巧称为批卸载。所以使用这三个项目中的一个我可以推荐:

  • Absolute Uninstaller (+ slim,removes registry and folders, - click OK 50 times)
  • 绝对卸载程序(+ slim,删除注册表和文件夹,-单击OK 50次)
  • IObit Uninstaller (+ also for toolbars, removes registry and folders, - ships itself with optional toolbar)
  • IObit Uninstaller(+也用于工具栏,删除注册表和文件夹,-自带可选工具栏)
  • dUninstaller (+ silent mode/force: no clicking for 50 applications, it does it in the background - doesn't scan registry/files)
  • dUninstaller (+ silent mode/force:没有为50个应用程序单击,它在后台执行——不扫描注册表/文件)

Take no.2 in imho, 1 is nice but sometimes encounters some bugs :-)

没有。2 in imho, 1是不错,但有时遇到一些bug:

#6


1  

Try the bellow links

试着波纹管连接

http://msdn.microsoft.com/en-us/library/ms246604%28v=vs.80%29.aspx

http://msdn.microsoft.com/en-us/library/ms246604%28v=vs.80%29.aspx

Or

http://archive.msdn.microsoft.com/vs2010uninstall

http://archive.msdn.microsoft.com/vs2010uninstall

This may help you.

这可能会帮助你。

#7


1  

There is a solution here : Add

这里有一个解决方案:添加

/full /netfx at the end of the path!

/full /netfx在路径的尽头!

This should clear almost all. You should only be left with SQL Server.

这应该会消除几乎所有的问题。应该只剩下SQL Server。

#8


0  

Download and install IOBIT uninstaller: http://www.iobit.com/advanceduninstaller.php, find the date in which you install Visual Studio and select all programas from that date r elated to VS. Then run de batch uninstaller. It is not a fully automated solution but it is a lot quicker than going one by one int he add / remove programs in Windows. It even has a power scan to clean the registry.

下载并安装IOBIT卸载程序:http://www.iobit.com/advanceduninstaller.php,找到安装Visual Studio的日期,并从该日期选择要安装的所有程序,然后运行de batch卸载程序。它不是一个完全自动的解决方案,但是它比在Windows中添加/删除程序要快得多。它甚至还有一个电源扫描来清理注册表。

#9


0  

If I may give an answer to an old thread; You can use PC Decrapifier to select programs you want to uninstall. PC Decrapifier will uninstall them one by one for you so you don't have to click them all seperately.

如果我能给一个旧的线索一个答案;您可以使用PC Decrapifier来选择您想要卸载的程序。PC Decrapifier将会为你卸载它们,这样你就不必全部点击它们了。

This is very useful for removing all the 'junk' - like the SQL Database tools - Visual Studio leaves behind even when uninstalled.

这对于删除所有“垃圾”非常有用——比如SQL数据库工具——Visual Studio即使在卸载时也会留下这些垃圾。

#10


-2  

Best way I have used is to mount the VS 2010 Image or insert the Installation disc and run the uninstall option, really works well

我使用的最好的方法是安装VS 2010映像或插入安装盘并运行卸载选项,非常有效

#11


-3  

the best way to uninstall VS 2010 is to use Microsoft Visual Studio 2010 Uninstall Utility on this link http://archive.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=vs2010uninstall&DownloadId=11182

卸载VS 2010的最好方法是在这个链接http://archive.msdn.microsoft.com/project/download/filedownload.aspx?

#1


93  

Update April 2016 - for VS2013+

Microsoft started to address the issue in late 2015 by releasing VisualStudioUninstaller.

微软从2015年末开始着手解决这个问题,发布了VisualStudioUninstaller。

They abandoned the solution for a while; however work has begun again again as of April 2016.

他们暂时放弃了解决方案;然而,截至2016年4月,工作再次开始。

There has finally been an official release for this uninstaller in April 2016 which is described as being "designed to cleanup/scorch all Preview/RC/RTM releases of Visual Studio 2013, Visual Studio 2015 and Visual Studio vNext".

终于在2016年4月发布了这款uninstaller的官方版本,该版本被描述为“用于清理/烤焦所有Visual Studio 2013、Visual Studio 2015和Visual Studio vNext的预览/RC/RTM发布”。


Original Answer - for VS2010, VS2012

Note that the following two solutions still leave traces (such as registry files) and can't really be considered a 'clean' uninstall (see the final section of the answer for a completely clean solution).

请注意,以下两个解决方案仍然保留了跟踪(比如注册表文件),并且不能真正被认为是“干净”的卸载(请参见解决方案的最后一部分,以获得完全干净的解决方案)。


Solution 1 - for: VS 2010

解决方案1 - for: VS 2010

There's an uninstaller provided by Microsoft called the Visual Studio 2010 Uninstall Utility. It comes with three options:

微软提供了一个uninstaller,叫做Visual Studio 2010 Uninstall实用工具。它有三个选择:

  1. Default (VS2010_Uninstall-RTM.ENU.exe)
  2. 默认(VS2010_Uninstall-RTM.ENU.exe)
  3. Full (VS2010_Uninstall-RTM.ENU.exe /full)
  4. 全部(VS2010_Uninstall-RTM.ENU。exe /全部)
  5. Complete (VS2010_Uninstall-RTM.ENU.exe /full /netfx)
  6. 完成(VS2010_Uninstall-RTM.ENU。exe /全/ netfx)

The above link explains the uninstaller in greater detail - I recommend reading the comments on the article before using it as some have noted problems (and workarounds) when service packs are installed. Afterwards, use something like CCleaner to remove the leftover registry files.

上面的链接更详细地解释了卸载程序——我建议在使用本文之前阅读本文的注释,因为在安装服务包时,有些人已经注意到了问题(以及解决方案)。然后,使用CCleaner这样的命令删除剩余的注册表文件。

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

以下是VS2010 UU下载页面的链接。


Solution 2 - for: VS 2010, VS 2012

解决方案2 - for: VS 2010, VS 2012

Microsoft provide an uninstall /force feature that removes most remnants of either VS2010 or VS2012 from your computer.

微软提供了卸载/强制功能,可以从您的计算机中删除VS2010或VS2012的大部分残余。

MSDN: How to uninstall Visual Studio 2010/2012. From the link:

MSDN:如何卸载Visual Studio 2010/2012。从链接:

Warning: Running this command may remove some packages even if they are still 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. 下载用于最初安装Visual Studio 2012的安装应用程序。如果从媒体安装,请插入该媒体。
  3. Open a command prompt. Click Run on the Start menu (Start + R). Type cmd and press OK (Enter).
  4. 打开一个命令提示符。单击开始菜单上的Run (Start + R),输入cmd,按OK (Enter)。
  5. Type in the full path to the setup application and pass the following command line switches: /uninstall /force Example: D:\vs_ultimate.exe /uninstall /force
  6. 输入设置应用程序的完整路径,并通过以下命令行开关:/卸载/force示例:D:\vs_ultimate。exe /卸载/力
  7. Click the Uninstall button and follow the prompts.
  8. 单击Uninstall按钮并按照提示操作。

Afterwards, use something like CCleaner to remove the leftover registry files.

然后,使用CCleaner这样的命令删除剩余的注册表文件。


A completely clean uninstall?

一个完全干净的卸载吗?

Sadly, the only (current) way to achieve this is to follow dnLL's advice in their answer and perform a complete operating system reinstall. Then, in future, you could use Visual Studio inside a Virtual Machine instead and not have to worry about these issues again.

遗憾的是,实现这一点的唯一(当前)方法是按照dnLL的建议执行完整的操作系统重新安装。然后,将来,您可以在虚拟机中使用Visual Studio,而不必再担心这些问题。

#2


34  

This is the simplest way to remove all the packages. From an admin prompt:
wmic product where "name like 'microsoft visual%'" call uninstall /nointeractive

这是删除所有包的最简单方法。从一个管理提示:wmic产品,其中“像‘microsoft visual%’这样的名称”调用uninstall /nointeractive

Repeat for SQL etc by replacing visual% in above command with sql.

在上面的命令中用SQL替换掉visual%来重复SQL等等。

#3


23  

Put in your CD or mount your ISO. Run the setup program from the command prompt using the flags /uninstall /force

把你的CD或安装你的ISO。使用标志/卸载/强制从命令提示符运行安装程序

I actually had ran into this issue the other day and it worked wonders. =)

事实上,我前几天遇到了这个问题,它产生了奇效。=)

#4


20  

The only real clean way to uninstall VS (Visual Studio, whatever version it is) is to completely reinstall the whole OS. If you don't, more compatibility problems might surface.

卸载VS (Visual Studio,无论它是什么版本)的唯一真正干净的方法是完全重新安装整个操作系统。如果不这样做,可能会出现更多的兼容性问题。

Permanent solution

永久的解决方案

Starting from scratch (clean install, VS never installed on the OS), the best way to avoid all those problems is to install and run VS from a VM (virtual machine) as stated by Default in the comments above. This way, and as long as Microsoft doesn't do anything to improve its whole platform to be more user-friendly, switching from a version to another will be quick and easy and the main partition of the HDD (or SSD in my case) won't be filed with all the garbage that VS leaves behind.

从头开始(清理安装,VS从未安装在操作系统上),避免所有这些问题的最好方法是安装和运行VM(虚拟机),如上面的注释所述。这样,只要微软不会做任何事来改善其整体平台更用户友好的,从一个版本切换到另一个快速简单,硬盘的主分区(或SSD在我的例子中)不会向所有VS留下的垃圾。

Of course, the disadvantage is speed. The program will be slower in pretty much every way. But honestly, who uses VS for its speed? Even on the latest enthusiast-platforms, it takes ages to install. Even if VS might start up faster on a high-end SSD, it's just slow.

当然,缺点是速度。这个程序在各个方面都将会变慢。但老实说,谁用VS来表示速度呢?即使是在最新的热情平台上,安装也需要很长时间。即使VS可能在高端SSD上启动得更快,也只是很慢。

#5


5  

Struggled with the same problem: Many applications, BUT make at least this part "pleasant": The trick is called Batch-Uninstall. So use one of these three programs i can recommend:

遇到了同样的问题:许多应用程序,但至少使这部分“令人愉快”:这个技巧称为批卸载。所以使用这三个项目中的一个我可以推荐:

  • Absolute Uninstaller (+ slim,removes registry and folders, - click OK 50 times)
  • 绝对卸载程序(+ slim,删除注册表和文件夹,-单击OK 50次)
  • IObit Uninstaller (+ also for toolbars, removes registry and folders, - ships itself with optional toolbar)
  • IObit Uninstaller(+也用于工具栏,删除注册表和文件夹,-自带可选工具栏)
  • dUninstaller (+ silent mode/force: no clicking for 50 applications, it does it in the background - doesn't scan registry/files)
  • dUninstaller (+ silent mode/force:没有为50个应用程序单击,它在后台执行——不扫描注册表/文件)

Take no.2 in imho, 1 is nice but sometimes encounters some bugs :-)

没有。2 in imho, 1是不错,但有时遇到一些bug:

#6


1  

Try the bellow links

试着波纹管连接

http://msdn.microsoft.com/en-us/library/ms246604%28v=vs.80%29.aspx

http://msdn.microsoft.com/en-us/library/ms246604%28v=vs.80%29.aspx

Or

http://archive.msdn.microsoft.com/vs2010uninstall

http://archive.msdn.microsoft.com/vs2010uninstall

This may help you.

这可能会帮助你。

#7


1  

There is a solution here : Add

这里有一个解决方案:添加

/full /netfx at the end of the path!

/full /netfx在路径的尽头!

This should clear almost all. You should only be left with SQL Server.

这应该会消除几乎所有的问题。应该只剩下SQL Server。

#8


0  

Download and install IOBIT uninstaller: http://www.iobit.com/advanceduninstaller.php, find the date in which you install Visual Studio and select all programas from that date r elated to VS. Then run de batch uninstaller. It is not a fully automated solution but it is a lot quicker than going one by one int he add / remove programs in Windows. It even has a power scan to clean the registry.

下载并安装IOBIT卸载程序:http://www.iobit.com/advanceduninstaller.php,找到安装Visual Studio的日期,并从该日期选择要安装的所有程序,然后运行de batch卸载程序。它不是一个完全自动的解决方案,但是它比在Windows中添加/删除程序要快得多。它甚至还有一个电源扫描来清理注册表。

#9


0  

If I may give an answer to an old thread; You can use PC Decrapifier to select programs you want to uninstall. PC Decrapifier will uninstall them one by one for you so you don't have to click them all seperately.

如果我能给一个旧的线索一个答案;您可以使用PC Decrapifier来选择您想要卸载的程序。PC Decrapifier将会为你卸载它们,这样你就不必全部点击它们了。

This is very useful for removing all the 'junk' - like the SQL Database tools - Visual Studio leaves behind even when uninstalled.

这对于删除所有“垃圾”非常有用——比如SQL数据库工具——Visual Studio即使在卸载时也会留下这些垃圾。

#10


-2  

Best way I have used is to mount the VS 2010 Image or insert the Installation disc and run the uninstall option, really works well

我使用的最好的方法是安装VS 2010映像或插入安装盘并运行卸载选项,非常有效

#11


-3  

the best way to uninstall VS 2010 is to use Microsoft Visual Studio 2010 Uninstall Utility on this link http://archive.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=vs2010uninstall&DownloadId=11182

卸载VS 2010的最好方法是在这个链接http://archive.msdn.microsoft.com/project/download/filedownload.aspx?