From 6e8b42a5a70dd31a1bdcaa5d006e096e736e103e Mon Sep 17 00:00:00 2001 From: Matthew Clark <43628254+mon5termatt@users.noreply.github.com> Date: Fri, 18 Aug 2023 16:45:56 -0700 Subject: [PATCH] Add files via upload --- Medicat_Installer.bat | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/Medicat_Installer.bat b/Medicat_Installer.bat index b334688..d11aaa0 100644 --- a/Medicat_Installer.bat +++ b/Medicat_Installer.bat @@ -2,7 +2,7 @@ title Medicat Installer [STARTING] cd /d %~dp0 Set "Path=%Path%;%CD%;%CD%\bin;" -set localver=3507 +set localver=3508 set maindir=%CD% set format=Yes set formatcolor=2F @@ -57,31 +57,6 @@ if not exist bin md bin :lang FOR /F "skip=2 tokens=2*" %%a IN ('REG QUERY "HKEY_CURRENT_USER\Control Panel\International" /v "LocaleName"') DO SET "OSLanguage=%%b" set lang=%OSLanguage:~0,2% -IF "%lang%"=="en" (goto curver) -IF "%lang%"=="fr" (goto curver) -echo.Select Your Language -call Button 1 2 F2 "English" 14 2 F2 "Francais" 28 2 F2 "Portugues" 43 2 F2 "Deutsch" 56 2 F2 "Turkish" X _Var_Box _Var_Hover -GetInput /M %_Var_Box% /H %_Var_Hover% -If /I "%Errorlevel%"=="1" ( -set lang=en -goto curver -) -If /I "%Errorlevel%"=="2" ( -set lang=fr -goto curver -) -If /I "%Errorlevel%"=="3" ( -set lang=pt -goto curver -) -If /I "%Errorlevel%"=="4" ( -set lang=gr -goto curver -) -If /I "%Errorlevel%"=="5" ( -set lang=tr -goto curver -) :curver mode con:cols=64 lines=18 @@ -158,11 +133,11 @@ curl "https://raw.githubusercontent.com/mon5termatt/medicat_installer/main/ver.i cls echo.Downloading Initial Files, Please wait. echo.10/13 [======================================== ] -curl "https://raw.githubusercontent.com/mon5termatt/medicat_installer/main/%lang%/motd.txt" -o ./bin/motd.txt -s -L +curl "https://raw.githubusercontent.com/mon5termatt/medicat_installer/main/translate/motd.ps1" -o ./bin/motd.ps1 -s -L cls echo.Downloading Initial Files, Please wait. echo.11/13 [============================================ ] -curl "https://raw.githubusercontent.com/mon5termatt/medicat_installer/main/%lang%/LICENSE.txt" -o ./bin/LICENSE.txt -s -L +curl "https://raw.githubusercontent.com/mon5termatt/medicat_installer/main/translate/licence.ps1" -o ./bin/licence.ps1 -s -L cls echo.Downloading Initial Files, Please wait. echo.12/13 [================================================ ] @@ -184,7 +159,7 @@ set installertext=MEDICAT INS title Medicat Installer [%localver%] mode con:cols=100 lines=30 cls -type bin\LICENSE.txt +powershell bin\licence.ps1 %lang% echo. pause :menu2 @@ -196,7 +171,7 @@ echo. echo. echo.VERSION %localver% BY MON5TERMATT. echo. -type bin\motd.txt +powershell bin\motd.ps1 %lang% GetInput /M %_Var_Box% /H %_Var_Hover%