Update update.bat

pull/27/head
Matthew Clark 1 year ago committed by GitHub
parent 1166b191bf
commit bc880f587d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,24 +1,11 @@
@echo off
timeout 2 > nul
md bin
Set "Path=%Path%;%CD%;%CD%\bin;"
DEL "Medicat Installer.exe"
DEL "MediCat_Installer.exe"
DEL "Medicat Installer.bat"
DEL "MediCat_Installer.bat"
cls
echo.Updating Medicat Installer. Please wait while the new file is downloaded.
:checkwget
if exist "bin\wget.exe" (goto curver) else (goto curlwget)
:curlwget
echo.
echo.Attempting to download wget using curl.
echo.This requires windows 10 version 1703 or higher.
if not exist bin md bin
if defined ProgramFiles(x86) (set bit=64) else (set bit=32)
curl https://raw.githubusercontent.com/mon5termatt/medicat_installer/main/bin/wget-%bit%.exe -o ./bin/wget.exe
goto checkwget
:curver
curl http://url.medicatusb.com/installerupdate -o Medicat_Installer.bat -q -L
cls
start cmd /k Medicat_Installer.bat Medicat_Installer.bat

Loading…
Cancel
Save