无法卸载Visual Studio 2012

Har*_*ede 10 visual-studio-2012

我试图从我的机器上卸载Visual Studio 2012但是没有给我任何卸载相同的选项.当我在控制面板/程序和功能中单击Visual Studio 2012时,它会显示CHANGE选项,当我单击此选项时,它会显示带有以下选项的弹出窗口.

Microsoft Visual Studio Professional 2012安装程序需要Microsoft .Net Framework.

单击"接受并安装"以接受Microsoft Framework许可证Term.

当我单击此选项时,它不执行任何操作,也不要卸载它.您可以建议我删除它并重新安装它的任何选项.这是许可副本.

dbl*_*ker 8

您可以尝试强制删除VS2012及其所有组件 http://support.microsoft.com/kb/2771441#Force

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.

3. Click Run on the Start menu (Start + R).
    a.  Type cmd and press OK (Enter).
    b.  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

4. Click the Uninstall button and follow the prompts.
Run Code Online (Sandbox Code Playgroud)

  • 即使我使用此选项强行删除Visual Studio 2012,它也无法正常工作,并给出与上面相同的提示. (5认同)

sun*_*nny 5

注意:必须从cmd提示符运行此命令,否则它将不会按预期创建日志文件.这些步骤将创建一个名为c:\ msiinv\msiinv_output.txt的文本文件,其中包含Windows Installer认为在系统上安装的每个产品的列表.然后,您可以在任何文本编辑器中打开文本文件,并在产品列表中搜索要卸载的产品的名称.

文本文件中的输出将显示如下:

Microsoft .NET Framework 2.0 Beta 2
产品代码:{7A1ADD0C-17F3-47B8-B033-A06E189C835D}
产品状态:(5)已安装.
包裹代码:{856D48D2-6F94-466D-9732-534DB5854FB3}
版本:2.0.50215

现在我们有了Windows Installer产品代码,我们可以通过运行msiexec/x {product code}来使用它来卸载产品(确保在此命令行中包含花括号).如果产品实际安装在您的系统上,您将看到一个进度屏幕,卸载将完成.

如果Windows Installer认为产品已安装但实际上并非如此,那么运行msiexec/x将显示错误,指出此命令仅对已安装的产品有效.如果发生这种情况,您将需要执行额外的步骤来删除导致Windows Installer认为已安装此产品的数据.您可以下载Windows Installer清理实用程序并在计算机上安装并运行它以修复此问题.

参考:http://blogs.msdn.com/b/astebner/archive/2005/07/01/434814.aspx