Files
proxy-suite-flake/windows/tools/uninstall.cmd
T
faumarayandClaude Opus 5.5 8d9705cd3a windows: uninstall.cmd leaves the install folder before removing it
Opened from Explorer, its window's working directory is the install
folder, which Windows then cannot remove while the window waits at its
pause: the files went, the folder stayed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:47:45 +03:00

11 lines
522 B
Batchfile

@echo off
:: Proxy Suite: remove the service and the program. The configuration and state stay in
:: %ProgramData%\ProxySuite.
net session >nul 2>&1 || (
powershell -NoProfile -Command "Start-Process -Verb RunAs -FilePath '%~f0'"
exit /b
)
:: One line: cmd reads a batch file line by line, and this one is deleted meanwhile. Out of
:: the folder first: opened from Explorer, this window would hold it (and keep it there).
cd /d "%SystemRoot%" & "%~dp0proxy-suite-service.exe" uninstall & pause & exit /b