@echo off
setlocal EnableExtensions

set "installer=%~dp0deployment-files\install-publisher-then-microsoft-365.bat"

if not exist "%installer%" (
  echo.
  echo ERROR: The mapped installer batch file is missing.
  echo Expected file:
  echo "%installer%"
  echo.
  pause
  exit /b 1
)

rem Pass control to the batch file inside the deployment-files subfolder.
call "%installer%"
exit /b %errorlevel%
