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

Can't uninstall Visual Studio 2015 (The storage control blocks were destroyed)

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

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

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

我不知道如何进行。

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

然后发现如下link:

然后导航到 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

然后我在很长一段时间后看到了这个错误屏幕...

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

所以我尝试 运行:

vs_community.exe /repair

它挂了,大约半小时后我强行退出了。然后我运行:

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 更新并卸载了 KB2999226 更新并返回到:
C:\ProgramData\Package Cache\{50b32652-69d2-4b93-9316-edcd12067b8b}

运行 再次如下:

vs_community.exe /uninstall /force

这次成功了,我得到了屏幕:

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

KB3139923

KB3072630

在没有安装另一个的情况下安装一个导致了问题。

万一有人再次遇到这种情况,以下方法对我有用:

  1. 下载并安装 KB2999226

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

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

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" 中搜索它文件夹

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

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

下面的步骤为我修复了它。

首先卸载 KB2999226:

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

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

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

从管理员中卸载 Visual Studio shell(您可以使用最初用于安装的安装 exe):

vs_community.exe /uninstall /force