Claude Code "This App Can't Run on Your PC" Windows Error Fix
Claude Code's update mechanism creates a 0-byte claude.exe file while renaming the working executable to a backup filename. Windows can't run the 0-byte file.
The Bug
Update process renames working claude.exe to backup name, then creates new claude.exe that ends up 0 bytes. Happens on /exit command.
Fix
- Navigate to
%USERPROFILE%\.claude\bin\ - Delete the 0-byte
claude.exe - Rename the backup file (e.g.,
claude.exe.old) toclaude.exe
Commands: cd %USERPROFILE%\.claude\bin\ → del claude.exe → ren claude.exe.old claude.exe
Bug repeats on next /exit.
Alternative: VS Code Extension
Install Claude Code VS Code extension to avoid this bug entirely.
- Download VS Code from code.visualstudio.com
- Install Claude Code extension (
Ctrl+Shift+X→ Search"Claude Code") - Authenticate with your Anthropic account
Same functionality, no update bugs.
See Also: Troubleshooting Guide|Is Claude Down|VS Code Extension Setup

