@echo off setlocal echo === MBS Plugin Installer (Windows) === echo. :: Check for Administrator privileges net session >nul 2>&1 if %errorlevel% neq 0 ( echo ERROR: Please run this installer as Administrator. echo. pause exit /b 1 ) :: Download PowerShell installer if missing set SCRIPT=wininstall.ps1 set URL=https://monkeybreadsoftware.com/filemaker/files/gzip/wininstall.ps1 if not exist "%SCRIPT%" ( echo Downloading PowerShell installer... powershell -NoProfile -Command ^ "Invoke-WebRequest -Uri '%URL%' -OutFile '%SCRIPT%'" if errorlevel 1 ( echo ERROR: Download failed. pause exit /b 1 ) ) :: Run PowerShell installer echo Running installer... powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT%" if errorlevel 1 ( echo. echo Installation failed. pause exit /b 1 ) echo. echo Installation completed successfully. echo Restart FileMaker Server to activate the plugin. pause endlocal