-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.bat
64 lines (52 loc) · 1.49 KB
/
uninstall.bat
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@echo off
setlocal enabledelayedexpansion
@REM run as admin
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
echo =========================================================================
echo.
echo ABUS Uninstaller [Version 3.0]
echo contact: [email protected]
echo.
echo =========================================================================
echo.
cd /D "%~dp0"
:: quit task
choice /C YN /N /T 10 /D Y /M "Terminate all running python.exe. Do you want to continue (Y/N)?"
if errorlevel 2 (
echo.
echo Quit Uninstallation.
pause
exit 0
)
taskkill /f /im python.exe /t
echo.
echo.
choice /C NY /N /T 10 /D N /M "Would you like to remove system packages (not recommended) (N/Y)?"
if errorlevel 2 (
echo.
echo Start Uninstallation.
:: Uninstall packages
choco uninstall -y ffmpeg
@REM choco uninstall -y cuda --version=11.8.0.52206
@REM choco uninstall -y cuda --version=12.3.2.546
choco uninstall -y cuda
choco uninstall -y visualstudio2022-workload-vctools
choco uninstall -y visualstudio2022buildtools
)
:: remove folder
if exist "%~dp0\installer_files\" (
echo Deleting installer_files folder ...
echo Please wait a moment
rmdir /s /q "%~dp0\installer_files"
)
echo ABUS uninstall.bat finished.
pause
:: Rebooting
for /l %%i in (30,-1,1) do (
cls
echo.
echo ABUS Uninstaller finished.
echo System will be rebooted in %%i seconds.
timeout /t 1 /nobreak >nul
)
shutdown /r /t 0