@echo off setlocal title MDHelper Installer Builder powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%~dp0build_installer.ps1" %* set "BUILD_EXIT=%ERRORLEVEL%" echo. if not "%BUILD_EXIT%"=="0" echo Build failed. See the error above and pack\logs. if /I "%~1"=="-NoPause" goto done if "%MDHELPER_NO_PAUSE%"=="1" goto done pause :done exit /b %BUILD_EXIT%