This repository has been archived by the owner on Aug 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wlk-install.bat
71 lines (60 loc) · 1.82 KB
/
wlk-install.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
@echo off
mode con: cols=70 lines=35
TITLE Windows License Keys Installation: v1.0.1
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
echo Welcome to Windows License Keys Installation
echo This will install latest wlk version to your computer.
echo.
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
choice /C YN /N /M "Do you want to install this program to your computer [Y/N]? "
if %errorlevel%==1 goto license
if %errorlevel%==2 goto cancel
:license
echo.
echo LICENSE
echo.
curl -sL https://raw.githubusercontent.com/xqwtxon/wlk/main/LICENSE --retry 10 --retry-delay 5
if %errorlevel%==1 goto error
echo.
echo.
choice /C YN /N /M "Do you accept the installation license [Y/N]? "
if %errorlevel%==1 goto install
if %errorlevel%==2 goto cancel
:install
echo.
echo Downloading wlk.bat ...
curl -sL https://raw.githubusercontent.com/xqwtxon/wlk/main/wlk.bat -o "wlk.bat" --retry 10 --retry-delay 5
if %errorlevel%==1 goto error
echo Downloaded wlk.bat ...
goto complete
:complete
echo.
echo The wlk.bat installation is now completed and successfull ...
echo.
choice /C YN /N /M "Do you want to launch now [Y/N]? "
if %errorlevel%==1 goto launch
if %errorlevel%==2 goto cancel
:launch
echo.
echo Launching wlk.bat ...
timeout /T 10 /NOBREAK>nul
start wlk.bat
exit 1
:report
echo.
echo Opening github issues on the browser ...
start https://github.com/xqwtxon/wlk/issues
timeout /T 10 /NOBREAK>nul
:cancel
echo.
echo Cancelling Installation ...
timeout /T 10 /NOBREAK>nul
:error
echo.
echo AN ERROR OCCUR WHILE INSTALLING THE wlk.bat TO YOUR COMPUTER.
echo.
choice /C YN /N /M "Do you want report this issue on github [Y/N]? "
if %errorlevel%==1 goto report
if %errorlevel%==2 goto cancel