bzl

self-hosted ephemeral community engine
Log | Files | Refs | README | LICENSE

INSTALL.cmd (694B)


      1 @echo off
      2 setlocal
      3 pushd "%~dp0"
      4 echo [Bzl] Installer (Windows)
      5 echo.
      6 echo This window will stay open so you can see any errors.
      7 
      8 where powershell >nul 2>nul
      9 if errorlevel 1 (
     10   echo Missing PowerShell.
     11   echo.
     12   pause
     13   exit /b 1
     14 )
     15 
     16 REM Run the PowerShell installer with an execution-policy bypass so double-click works on most systems.
     17 powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0INSTALL.ps1"
     18 set code=%ERRORLEVEL%
     19 if not "%code%"=="0" (
     20   echo [Bzl] Installer failed (exit %code%).
     21   echo.
     22   pause
     23   exit /b %code%
     24 )
     25 
     26 echo.
     27 echo [Bzl] Install finished.
     28 choice /c YN /n /m "Launch Bzl now? (Y/N) "
     29 if errorlevel 2 goto end
     30 call "%~dp0LAUNCH.cmd"
     31 
     32 :end
     33 echo.
     34 pause
     35 popd
     36 endlocal