@echo off REM Install-AcroReader.cmd - Install Adobe Acrobat Reader DC + DC update patch REM REM Two-step install: base MSI with enterprise transform, then DC update patch. REM Script lives in /scripts/; MSI + MST + MSP + CAB live in sibling REM /apps/. pushd into apps\ so the MSI's Media-table CAB reference REM (Data1.cab) resolves against its sibling, and msiexec doesn't choke on REM a mapped-drive path with ..\ normalization (was returning 1619). setlocal pushd "%~dp0..\apps" echo Installing Adobe Acrobat Reader DC... msiexec /i "AcroRead.msi" TRANSFORMS="AcroRead.mst" /quiet /norestart set RC=%errorlevel% if %RC% neq 0 if %RC% neq 3010 ( echo Acrobat Reader MSI failed with exit code %RC% popd exit /b %RC% ) echo Applying Adobe Reader DC update patch... msiexec /p "AcroRdrDCUpd2500120531.msp" /quiet /norestart set RC=%errorlevel% if %RC% neq 0 if %RC% neq 3010 ( echo Acrobat Reader patch failed with exit code %RC% popd exit /b %RC% ) popd echo Adobe Acrobat Reader DC installed successfully. exit /b 0