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>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 13:47:45 +03:00
1 parent ae58bd1f12
commit 8d9705cd3a
2 files changed
+6 -3

No files matched your search

+3 -2
View File
@@ -5,5 +5,6 @@ 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.
"%~dp0proxy-suite-service.exe" uninstall & pause & 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