Add files via upload

pull/10/head
Matthew Clark 2 years ago committed by GitHub
parent 43c6d40eb5
commit d0a817d50a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@
title Medicat Installer [STARTING] title Medicat Installer [STARTING]
cd /d %~dp0 cd /d %~dp0
Set "Path=%Path%;%CD%;%CD%\bin;" Set "Path=%Path%;%CD%;%CD%\bin;"
set localver=4000 set localver=3203
set maindir=%CD% set maindir=%CD%
set format=Yes set format=Yes
set formatcolor=2F set formatcolor=2F
@ -53,13 +53,14 @@ If /i "%_num%"=="I AGREE" goto oscheckpass
:oscheckpass :oscheckpass
timeout 2 > nul timeout 2 > nul
md bin md bin
clear cls
echo.Downloading WGET for the remaining downloads as its faster. echo.Downloading WGET for the remaining downloads as its faster.
curl -O -s https://eternallybored.org/misc/wget/1.21.3/%bit%/wget.exe curl -O -s https://eternallybored.org/misc/wget/1.21.3/%bit%/wget.exe
move .\wget.exe .\bin\wget.exe move .\wget.exe .\bin\wget.exe
wget "http://cdn.medicatusb.com/files/install/bin.bat" -O ./bin.bat -q wget "https://raw.githubusercontent.com/mon5termatt/medicat_installer/main/bin.bat" -O ./bin.bat -q
call bin call bin
del bin.bat del bin.bat
cls
@ -100,19 +101,14 @@ goto curver
) )
:curver :curver
wget "http://cdn.medicatusb.com/files/install/curver.ini" -O ./curver.ini -q powershell -c "$data = wget https://api.github.com/repos/mon5termatt/medicat_installer/git/refs/tag -UseBasicParsing | ConvertFrom-Json; $data[-1].ref -replace 'refs/tags/', '' | Out-File -Encoding 'UTF8' -FilePath './curver.ini'"
set /p remver= < curver.ini set /p remver= < curver.ini
set remver=%remver:~-4%
del curver.ini /Q del curver.ini /Q
echo."%localver%" == "%remver%"
:--------------------------------------------------- pause
:---------------------------------------------------
rem REMOVE THIS TO CHECK FOR UPDATES
goto start
:---------------------------------------------------
:---------------------------------------------------
if "%localver%" == "%remver%" (goto start) if "%localver%" == "%remver%" (goto start)
:updateprogram :updateprogram
cls cls
echo.A new version of the program has been released. The program will now restart. echo.A new version of the program has been released. The program will now restart.
@ -158,14 +154,6 @@ goto menu
:menu :menu
set installertext=MEDICAT INSTALLER set installertext=MEDICAT INSTALLER
title Medicat Installer [%localver%] title Medicat Installer [%localver%]
@ -439,9 +427,9 @@ goto finishup
REM -- FILE CLEANUP REM -- FILE CLEANUP
:finishup :finishup
wget "http://cdn.medicatusb.com/files/hasher/Validate_Files.exe" -O %drivepath%:/Validate_Files.exe -q wget "https://raw.githubusercontent.com/mon5termatt/medicat_installer/main/hasher/CheckFiles.bat" -O %drivepath%:/CheckFiles.bat -q
cd /d %drivepath%: cd /d %drivepath%:
start "%drivepath%:/Validate_Files.exe" "%drivepath%:/Validate_Files.exe" start cmd /k CheckFiles.bat
exit exit
@ -450,12 +438,21 @@ exit
::---------------------------------------------------------------------------------------------------------------------------------------------------
::---------------------------------------------------------------------------------------------------------------------------------------------------
::---------------------------------------------------------------------------------------------------------------------------------------------------
::---------------------------------------------------------------------------------------------------------------------------------------------------
::---------------------------------------------------------------------------------------------------------------------------------------------------
::---------------------------------------------------------------------------------------------------------------------------------------------------
::---------------------------------------------------------------------------------------------------------------------------------------------------
::---------------------------------------------------------------------------------------------------------------------------------------------------
::---------------------------------------------------------------------------------------------------------------------------------------------------
:hasher :hasher
wget "http://cdn.medicatusb.com/files/hasher/drivefiles.md5" -O ./drivefiles.md5 -q wget "https://raw.githubusercontent.com/mon5termatt/medicat_installer/main/hasher/drivefiles.md5" -O ./drivefiles.md5 -q
echo.THIS WILL LOOK FROZEN, DONT PANIC, ITS WORKING! echo.THIS WILL LOOK FROZEN, DONT PANIC, ITS WORKING!
echo.CANCEL AT ANY TIME BY CLOSING THE QUICKSFV BOX! echo.CANCEL AT ANY TIME BY CLOSING THE QUICKSFV BOX!
QuickSFV.EXE drivefiles.md5 QuickSFV.EXE drivefiles.md5

Loading…
Cancel
Save