-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.bat
More file actions
26 lines (22 loc) · 889 Bytes
/
uninstall.bat
File metadata and controls
26 lines (22 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@echo off
setlocal
cd /d "%~dp0"
if exist ".venv\Scripts\python.exe" (
echo Uninstalling GdPy package from the virtual environment...
call ".venv\Scripts\python.exe" -m pip uninstall -y gdpy-lang >nul 2>nul
)
if not exist ".venv\Scripts\python.exe" (
where python.exe >nul 2>nul
if not errorlevel 1 (
echo Uninstalling GdPy package from the current user Python...
call python.exe -m pip uninstall -y gdpy-lang >nul 2>nul
)
)
echo Removing Windows integration...
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0tools\remove_integration.ps1"
if errorlevel 1 exit /b 1
echo Removing local virtual environment and caches...
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0tools\uninstall.ps1" -ScheduleRootRemoval
if errorlevel 1 exit /b 1
echo Uninstall complete. Installed files will be removed after this window closes.
exit /b 0