@echo off
cd /d "%~dp0"
if exist hydrology_launcher.exe (
  start "" "%~dp0hydrology_launcher.exe"
  exit /b 0
) else (
  echo hydrology_launcher.exe is missing. This is an old or incomplete package.
  echo Delete this folder and download the latest package from https://download.htzdwater.com
  python launcher.py
)
if errorlevel 1 (
  echo.
  echo Startup failed. Reopen the software after checking network and Microsoft Edge WebView2 Runtime.
  pause
)
