@echo off set VERSION=%1 set PATCHVERSION=%2 set novapatch=novapatch_x64_%VERSION%.%PATCHVERSION%.msp :: download Trimble Nova Install files "%SYSTEMROOT%\System32\bitsadmin.exe" /transfer /download https://pxe.intern.bnvb-ingenieure.de/nova/%VERSION%/novapatch/%novapatch% %TEMP%\%novapatch% >NUL cd "%TEMP%" :: install Trimble Nova Patch msiexec /p "%novapatch%" /qb REINSTALL=ALL REINSTALLMODE=omus