The following batch file can detect and install RTC clients on workstations
@echo off
wmic product get name,version /format:csv | find “Microsoft Dynamics NAV 2017 RoleTailored Client,10.0.14199.0”
if %errorlevel%==0 (
goto:1
) else (
goto:2
)
:1
echo NAV 2017 version 10.0.14199.0 installed, continue
goto:eof
:2
echo Checking if previous version of NAV exist, and uninstall old version
if exist “%CommonProgramFiles(x86)%\Microsoft Dynamics Nav\100\Setup\setup.exe” (
echo old version exist, start uninstalling old version
“%CommonProgramFiles(x86)%\Microsoft Dynamics Nav\100\Setup\Setup.exe” /uninstall /quiet
)
echo Installing NAV2017 10.0.14199.0 in background
net use n: {your network path that store the DVD folder}
start n:\Setup.exe /config n:\2017Config.xml /quiet
goto:eof
:eof