Appearance
Windows Claude Desktop 安装失败 0x80073CF6:CoworkVMService 服务冲突
问题
Windows 11 上安装或更新 Claude Desktop 时反复失败,错误码 0x80073CF6:
MSIX installation failed: AddPackage failed with HRESULT 0x80073CF6查看 %TEMP%\ClaudeSetup.log 会看到:
WARNING: CoworkVMService already exists (potential conflict)
WARNING: failed to remove conflicting service: could not open CoworkVMService: Access is denied.原因:旧版安装残留的 CoworkVMService 服务和被锁定的 MSIX 包注册信息,普通安装程序权限不够清理这些。
来源:GitHub Issue #49655、社区 workaround 来源
解决方案
需要以管理员身份手动清理,中间必须重启,分 3 个阶段:
阶段 1:清理旧安装(管理员 PowerShell)
powershell
# 强制结束 Claude 相关进程
Get-Process *claude*,*cowork* -ErrorAction SilentlyContinue | Stop-Process -Force
# 卸载已注册的包
Get-AppxPackage -Name "Claude*" | Remove-AppxPackage -ErrorAction SilentlyContinue
Get-AppxPackage -AllUsers -Name "Claude*" | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
# 删除系统预置的包
Get-AppxProvisionedPackage -Online |
Where-Object { $_.PackageName -like "*Claude*" } |
Remove-AppxProvisionedPackage -Online
# 删除残留的 CoworkVMService 服务(安装程序无权做这步)
sc.exe stop CoworkVMService
sc.exe delete CoworkVMService
Remove-Item "HKLM:\SYSTEM\CurrentControlSet\Services\CoworkVMService" -Recurse -Force -ErrorAction SilentlyContinue
# 清理残留文件夹
Remove-Item "$env:LOCALAPPDATA\AnthropicClaude" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "$env:APPDATA\Claude" -Recurse -Force -ErrorAction SilentlyContinue阶段 2:重启 Windows(必须,不可跳过)
重启会释放被用户会话占用的 User.dat/UserClasses.dat 注册表配置单元,跳过这步必定触发 0x80073D05。
阶段 3:删除残留 AppData 并重新安装(管理员 PowerShell)
powershell
# 重启后运行,此时 hive 已释放
Remove-Item "$env:LOCALAPPDATA\Packages\Claude_pzs8sxrjxfjjc" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "C:\ProgramData\Packages\Claude_pzs8sxrjxfjjc" -Recurse -Force -ErrorAction SilentlyContinue
# 下载并安装最新版
$tmp = "C:\ClaudeTemp"
New-Item -Path $tmp -ItemType Directory -Force | Out-Null
Invoke-WebRequest -Uri "https://claude.ai/api/desktop/win32/x64/msix/latest/redirect" `
-OutFile "$tmp\Claude.msix" -UseBasicParsing
Add-AppxPackage -Path "$tmp\Claude.msix" -ForceApplicationShutdown -ForceUpdateFromAnyVersion注意: Add-AppxPackage 必须在管理员 PowerShell 中运行,否则因 CoworkVMService 是打包服务而触发 0x80073D28。