Update Medicat_Installer.bat

This commit is contained in:
Matthew Clark 2022-08-03 16:41:40 -05:00 committed by GitHub
parent 9269418743
commit f075ff4814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,8 @@ if '%errorlevel%' NEQ '0' (
:-------------------------------------- :--------------------------------------
:UACAdmin :UACAdmin
REM CHECK FOR POWERSHELL ON SYSTEM
:pwrshl :pwrshl
if exist "%SYSTEMROOT%\system32\WindowsPowerShell\v1.0\powershell.exe" (goto lang) else (goto pwrshlerr) if exist "%SYSTEMROOT%\system32\WindowsPowerShell\v1.0\powershell.exe" (goto lang) else (goto pwrshlerr)
:pwrshlerr :pwrshlerr
@ -52,31 +54,20 @@ echo.If you believe it IS installed and want to bypass this warning,
Set /P _num=type "OK": || Set _num=NothingChosen Set /P _num=type "OK": || Set _num=NothingChosen
If "%_num%"=="NothingChosen" exit If "%_num%"=="NothingChosen" exit
If /i "%_num%"=="ok" goto lang If /i "%_num%"=="ok" goto lang
REM IF POWERSHELL CHECK IS GOOD THEN PROMPT FOR LANGUAGE
:lang :lang
call :binfolder call :binfolder
echo.Select Your Language (only changes some things so far) echo.Select Your Language
call Button 1 2 F2 "ENGLISH" 14 2 F2 "Francais" 28 2 F2 "Portugues" 43 2 F2 "Deutsch" X _Var_Box _Var_Hover call Button 1 2 F2 "ENGLISH" 14 2 F2 "Francais" 28 2 F2 "Portugues" 43 2 F2 "Deutsch" X _Var_Box _Var_Hover
GetInput /M %_Var_Box% /H %_Var_Hover% GetInput /M %_Var_Box% /H %_Var_Hover%
If /I "%Errorlevel%"=="1" (goto en) GetInput /M %_Var_Box% /H %_Var_Hover%
If /I "%Errorlevel%"=="2" (goto fr) If /I "%Errorlevel%"=="1" (set lang=en && goto checkwget)
If /I "%Errorlevel%"=="3" (goto pt) If /I "%Errorlevel%"=="2" (set lang=fr && goto checkwget)
If /I "%Errorlevel%"=="4" (goto gr) If /I "%Errorlevel%"=="3" (set lang=pt && goto checkwget)
:en If /I "%Errorlevel%"=="4" (set lang=gr && goto checkwget)
set lang=en
goto checkwget
:fr
set lang=fr
goto checkwget
:pt
set lang=pt
goto checkwget
:gr
set lang=gr
goto checkwget
REM GOT ADMIN. NOW CHECK FOR WGET, VERSION, AND BIN FILES
REM NOW CHECK FOR REMAINING FILES
:checkwget :checkwget
echo. echo.
echo. echo.