Skip to content

[BUG] Claude Desktop Windows installer fails with AddPackage HRESULT 0x80073CF6 after an earlier "successful" install left the package in an inconsistent state #49917

Description

@ARHAEEM

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Environment

  • OS: Windows 11 Professional, build 10.0.22631
  • Architecture: x64
  • Installer: Claude Setup (1).exe (downloads https://api.anthropic.com/api/desktop/win32/x64/msix/latest/redirect)
  • MSIX: 223,023,064 bytes, SHA256 4c664c5390a4d5b46286158f67e21102431a1c9863dc5edb2b8683ef69e1e300
  • Package family: Claude_pzs8sxrjxfjjc
  • Previously installed version: Claude_1.3109.0.0_x64__pzs8sxrjxfjjc

What's wrong

On an existing install, trying to update or reinstall Claude Desktop fails repeatedly. The user-facing dialogs show:

  1. Installation failed: AddPackage failed: AddPackage failed with HRESULT 0x80073CF6
  2. App installation failed with error message: An internal error occurred with error 0x80073D05.
  3. Administrator access is required to install Claude with full features. You can try again or install without Cowork. (misleading — the process is already elevated)

What Should Happen?

Suggested fixes on the installer side

  1. Do not claim success when RemovePackage fails. When the existing package can't be removed, the installer should either retry with force flags (e.g., DeploymentOptions.ForceApplicationShutdown | ForceTargetApplicationShutdown | RemoveForAllUsers) or abort with a clear error and a remediation link. Silently calling AddPackage on a non-removed package produces the wedged state reproduced here.
  2. Surface CoworkVMService access-denied failures properly. "Administrator access is required" is misleading when Is elevated: true is already in the log — the real cause is the service-handle ACL or another process holding it. Please report the underlying OpenSCManager/OpenService error code in the dialog.
  3. Offer a recovery flow. Once the package is wedged, neither Remove-AppxPackage, Remove-AppxPackage -AllUsers, nor the installer can clear it (same finding in [BUG] Claude Desktop Windows installation permanently broken – MSIX stuck in Staged state #47877). A "repair" / "force clean" option in the installer would unblock affected users.
  4. Investigate the 0x80073D05 in the user-facing dialog. It doesn't appear literally in the log (log shows 0x80073CF6) — the mapping between the dialog code and the log code should be consistent.

What worked around it

Nothing so far — all Remove-AppxPackage attempts, registry cleanup, and fresh installer runs fail identically.

Error Messages/Logs

## Full log

Uploaded as `ClaudeSetup.log` (attach the file in the GitHub UI — sanitized: only paths contain the Windows username `admin`).

Steps to Reproduce

Reproduction

  1. Windows 11 Pro with an existing Claude_1.3109.0.0_x64__pzs8sxrjxfjjc install and a CoworkVMService present
  2. Run Claude Setup (1).exe to update/reinstall
  3. First run appears to succeed but leaves the package wedged
  4. Every subsequent run fails with AddPackage HRESULT 0x80073CF6

Log analysis (key excerpts)

Run 1 — "successfully installed" but likely left the package broken

2026/04/17 15:29:26.772280 Removing conflicting CoworkVMService...
2026/04/17 15:29:26.772280 WARNING: failed to remove conflicting service: could not open CoworkVMService: Access is denied.
2026/04/17 15:29:26.784544 Removing: Claude_1.3109.0.0_x64__pzs8sxrjxfjjc
2026/04/17 15:29:26.790294 WARNING: Remove failed for Claude_1.3109.0.0_x64__pzs8sxrjxfjjc: RemovePackage failed with HRESULT 0x80073CFA
2026/04/17 15:29:26.798289 Removing (user): Claude_1.3109.0.0_x64__pzs8sxrjxfjjc
2026/04/17 15:29:26.803317 WARNING: Remove failed for Claude_1.3109.0.0_x64__pzs8sxrjxfjjc: RemovePackage failed with HRESULT 0x80073CFA
2026/04/17 15:29:26.803317 Installing MSIX: ...
2026/04/17 15:29:26.804561 Standard install (not split-account), using AddPackage
2026/04/17 15:29:27.555410 MSIX package installed successfully
2026/04/17 15:29:27.614310 === Claude Setup completed successfully ===

Two issues here:

  • CoworkVMService removal fails with Access is denied even though Is elevated: true. The service is being opened with a handle level the elevated process doesn't have, or something else (antivirus, group policy, another user's session) holds it.
  • Both RemovePackage calls for the existing package fail with 0x80073CFA (ERROR_REMOVE_FAILED), yet the installer proceeds to AddPackage on top of the non-removed package and claims success. This is almost certainly where the wedge is created.

Runs 2, 3, 4 — consistent 0x80073CF6 failure

2026/04/17 15:30:37.814390 Checking for existing Claude MSIX packages...
2026/04/17 15:30:37.837840 Installing MSIX: ...
2026/04/17 15:30:37.839576 Extracted family name from MSIX manifest: Claude_pzs8sxrjxfjjc
2026/04/17 15:30:37.839576 Standard install (not split-account), using AddPackage
2026/04/17 15:30:37.839576 Installing via AddPackage (current-user)...
2026/04/17 15:30:52.848301 MSIX installation failed: AddPackage failed: AddPackage failed with HRESULT 0x80073CF6

Note that the package-enumeration step finds nothing to remove (no Removing: lines), yet AddPackage is rejected 13–17 seconds in with ERROR_PACKAGE_REGISTRATION_FAILED. That's the classic signature of an MSIX stuck in a partially-registered state — not enumerable by the deployment API, but the package family name is still claimed somewhere in the Appx store / WindowsApps filesystem.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

1.3109.0.0_x64

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

ClaudeSetup.log

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions