@echo off
rem Double-click to install QMS. Fetches the installer if it is not next to this file.
cd /d "%~dp0"
if exist "pasang-qms.ps1" goto run
powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; Invoke-WebRequest https://qms.adibmuazzam.my/pasang-qms.ps1 -OutFile pasang-qms.ps1"
if not exist "pasang-qms.ps1" (
  echo Tidak dapat memuat turun pemasang. Semak sambungan internet.
  pause
  exit /b 1
)
:run
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0pasang-qms.ps1" %*
