-
Notifications
You must be signed in to change notification settings - Fork 1
/
Launcher.bat
62 lines (54 loc) · 2.31 KB
/
Launcher.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
@echo off
setlocal enabledelayedexpansion
cd /d "%~dp0"
:: Self-elevation for administrative rights
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
)
:: Display ASCII art header
chcp 65001 >nul
cls
echo.
echo ██████╗ ██████╗ ██████╗ ███████╗
echo ██╔═══██╗██╔═══██╗██╔══██╗╚════██║
echo ██║ ██║██║ ██║██████╔╝ ██╔╝
echo ██║ ██║██║ ██║██╔═══╝ ██╔╝
echo ╚██████╔╝╚██████╔╝██║ ██║
echo ╚═════╝ ╚═════╝ ╚═╝ ╚═╝
echo.
<nul set /p "=[92m" & echo ------------[Welcome To Activator for Windows 7]-------------------[0m
echo [1] Windows Loader ^| Non-UEFI/GPT systems.
echo [2] Online KMS ^| Windows 7 Pro and Enterprise.
echo [3] EzWindSLIC ^| UEFI-GPT systems.
echo [4] Windows 7 Activator ^| Ultimate, Professional, Home Premium.
echo.
:: User input
set /p choice=Enter your choice (1, 2, 3, or 4):
:: Define paths to each tool
set "loader_path=.\src\Windows_Loader_v2.2.2\Windows Loader.exe"
set "kms_path=.\src\KMS\Online_KMS_Activation.cmd"
set "ezwind_path=.\src\EzWindSLIC_3.62f_traditional\EzWindSLIC_3.62f.cmd"
set "activator_path=.\src\Windows_7_Activator\Windows_7_Activator.bat"
:: Function to execute a tool
set "tool_path="
if "%choice%"=="1" set "tool_path=%loader_path%"
if "%choice%"=="2" set "tool_path=%kms_path%"
if "%choice%"=="3" set "tool_path=%ezwind_path%"
if "%choice%"=="4" set "tool_path=%activator_path%"
if defined tool_path (
if exist "!tool_path!" (
echo Starting tool: "!tool_path!"
start "" "!tool_path!"
) else (
echo [91mError: File not found: "!tool_path!"[0m
)
) else (
echo [93mInvalid choice! Please enter 1, 2, 3, or 4.[0m
)
pause
exit /B