-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.bat
80 lines (71 loc) · 2.37 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
@echo off
echo WARNING: You are about to remove BakkesLeague!
pause
:Start
cls
set "platform=none"
if exist "%localappdata%\bakkesleague\uninstall_epic.bat" ( goto epicexist )
if exist "%localappdata%\bakkesleague\uninstall_steam.bat" ( goto steamexist ) else ( goto Invalid )
:reentry
if %platform%==none ( goto Invalid )
if %platform%==steam (
cls
echo Uninstalling BakkesLeague from Steam...
start "" "%localappdata%\bakkesleague\uninstall_steam.bat"
timeout /t 1 /nobreak >nul 2>&1
echo BakkesLeague has been successfully removed
pause
del "%localappdata%\bakkesleague\uninstall_steam.bat"
cls
)
if %platform%==epic (
cls
start "" "%localappdata%\bakkesleague\uninstall_epic.bat"
timeout /t 1 /nobreak >nul 2>&1
echo BakkesLeague has been successfully removed
pause
del "%localappdata%\bakkesleague\uninstall_epic.bat"
cls
)
if %platform%==both (
cls
start "" "%localappdata%\bakkesleague\uninstall_epic.bat"
timeout /t 1
echo BakkesLeague has been successfully removed from Epic Games
pause
del "%localappdata%\bakkesleague\uninstall_epic.bat"
cls
start "" "%localappdata%\bakkesleague\uninstall_steam.bat"
timeout /t 1
echo BakkesLeague has been successfully removed from Steam
del "%localappdata%\bakkesleague\uninstall_steam.bat"
cls
)
rmdir "%localappdata%\bakkesleague"
cls
echo BakkesLeague has been successfully removed!
echo Have a great day!
timeout /t 5
goto quit
:steamexist
if exist "%localappdata%\bakkesleague\uninstall_epic.bat" ( goto Choose ) else ( set "platform=steam" && goto reentry )
:epicexist
if exist "%localappdata%\bakkesleague\uninstall_steam.bat" ( goto Choose ) else ( set "platform=epic" && goto reentry )
:Choose
echo Whoa! Looks like you have BakkesLeague installed on both Steam and Epic.
:chooseloop
echo Please choose which platform you would like to uninstall BakkesLeague from:
echo. A.Steam
echo. B.Epic
echo. C.Both
set /p user_input=Enter one of the above options:
if /i %user_input%==A ( set "platform=steam" && goto reentry )
if /i %user_input%==B ( set "platform=epic" && goto reentry )
if /i %user_input%==C ( set "platform=both" && goto reentry ) else ( cls && echo Error: Invalid input && echo Please enter either A, B, or C && goto chooseloop)
:Invalid
echo Error: BakkesLeague is not installed on this computer.
pause
goto End
:quit
exit
```