bookworm-boot/卸载Bookworm.bat
bookworm 0b4402d417 hotfix(v3.1.3): 卸载精准删除 + 体检凭证链路修正
W1: 卸载脚本改为只删 Bookworm 注入的 7 目录+3 文件,
    保留用户自有 CLAUDE.md/memory/projects (防误杀)
W2: bw-doctor [9] 改检 DPAPI→profile 注入链路,
    不再检查 User 持久环境变量 (逻辑反转修正)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-26 17:06:02 +08:00

23 lines
762 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 > nul
:: v3.1.3: Bookworm 完整卸载脚本
:: 删除: 桌面 .lnk × 4 / ~/.claude / DPAPI HKCU 凭证 /
:: 双 profile (PS7+PS5.1) 的 BW_CRED + BW_CLIP 块 / Toast 备份还原 /
:: ANTHROPIC_* User 环境变量
:: 保留: Node/Git/PS7/Claude Code (公共依赖, 不主动卸)
:: 调用配套 PS 脚本完成所有清理 (cmd 不擅长 PS 多行)
setlocal
where pwsh >nul 2>nul && set "PSH=pwsh" || set "PSH=powershell"
set "UNINST_PS1=%~dp0卸载Bookworm-impl.ps1"
if not exist "%UNINST_PS1%" (
echo [!] 卸载实现脚本缺失: %UNINST_PS1%
echo [!] 请重跑 Bookworm-Setup.exe Phase 3 重新克隆 bookworm-boot
pause
exit /b 1
)
%PSH% -NoProfile -ExecutionPolicy Bypass -File "%UNINST_PS1%"
endlocal