无法卸载Visual Studio 2015(存储控制块被破坏)

问题描述 投票:7回答:5

所以我想用“vs_enterprise.exe / uninstall / force”强制卸载VS2015 Enterprise,但是我收到一条错误消息:

Update for Microsoft Windows (KB2999226) : The storage control blocks were destroyed.

我试图重新启动我的电脑,以便Windows可以应用该更新,但它不起作用,卸载过程总是退出并出现该错误。

我不知道该怎么办。

visual-studio uninstall
5个回答
7
投票

当我尝试卸载Visual Studio 2015社区版时,我首先进入控制面板>程序和功能,尝试以这种方式卸载它。

然后找到以下链接:force uninstall a visual studio 2015 preview or release candidate

然后导航到C:\ProgramData并输入:

dir / s vs_community.exe

它生成了这个有用的路径信息: C:\ProgramData\Package Cache\{50b32652-69d2-4b93-9316-edcd12067b8b}

然后使用Windows资源管理器转到该文件夹​​,Shift + Right Click > Open command window here并运行:

vs_community.exe / uninstall / force

我在很长一段时间后得到了这个错误屏幕...... KB2999226 uninstall failure

然后看了下面的问题: removing visual studio components left behind after an uninstall

所以我试着跑:

vs_community.exe /修复

它结束了悬挂,我强迫在大约半小时后退出它。然后我跑了:

vs_community.exe / uninstall / force

这次我检查了错误日志,发现下面的行非常靠近底部。 Applying execute package: Windows7_MSU_x64, action: Uninstall, path: 2999226, arguments: '"C:\windows\SysNative\wusa.exe" /uninstall /kb:2999226 /quiet /norestart'

以为我必须安装KB2999226更新,因为错误: Update for Microsoft Windows (KB2999226) : The storage control blocks were destroyed.

所以我安装了它,但vs_community.exe仍然不会强制卸载。我可能已经安装了更新,但无法找到,因为我的windowsupdate.log文件只能回溯一个月左右?无论如何,我安装更新可能没有改变任何东西。

根据以下文章: sysnative folder 64 bit windows File System Redirector - MSDN

Windows7_MSU_x64试图进入C:\Windows\System32文件夹,但因为我有一个64位版本的Windows 7,它试图到达C:\windows\SysNative文件夹,因为它是一个自动重定向到真正的System32文件夹。由于某种原因,我没有SysNative文件夹,所以......

然后我转到Windows Update并卸载了KB2999226更新并返回到: C:\ProgramData\Package Cache\{50b32652-69d2-4b93-9316-edcd12067b8b}

再次出现以下情况:

vs_community.exe / uninstall / force

这次它工作了,我得到了屏幕: successful uninstall


0
投票

我有同样的问题(WINDOWS 7),我通过确保安装了以下KB来解决:

KB3139923

KB3072630

安装一个没有另一个安装导致问题。


0
投票

如果有人再遇到这个,以下为我做了诀窍:

  1. 从中下载并安装KB2999226

https://www.microsoft.com/en-us/download/details.aspx?id=49093

  1. 使用以下命令行创建从c:\ Windows \ SysNative到c:\ Windows \ System32的符号链接:

mklink / D c:\ Windows \ SysNative c:\ Windows \ System32

  1. 从命令提示符运行以下命令:

“C:\ ProgramData \ Package Cache \ {68432bbb-c9a5-4a7b-bab3-ae5a49b28303} \ vs_professional.exe”/ uninstall / force

{6844 ...}部分在不同的计算机上可能不同,vs_professional.exe可能位于不同的位置,但我想任何人都应该能够在“PackageCache”文件夹中搜索它


0
投票

我有同样的问题。但对我来说,这里没有任何效果。

对我有用的唯一方法是通过Windows卸载面板的标准方法。唯一的区别是你必须重新启动并再次卸载它,直到该选项从面板中消失。


0
投票

以下步骤为我修复了它。

首先卸载KB2999226:

wusa.exe /uninstall /kb:2999226 /quiet /norestart

下载并重新安装KB2999226(我们刚刚卸载的那个):

https://www.microsoft.com/en-us/download/details.aspx?id=49093

从admin shell卸载Visual Studio(您可以使用最初用于安装的install exe):

vs_community.exe /uninstall /force
© www.soinside.com 2019 - 2024. All rights reserved.