Voorbeeld van een batch file die controle doet welke versie en hierna naar INSTALL of END gaat.
@echo off
FOR /F "tokens=2 delims==" %%I IN (
'wmic datafile where "name='C:\\Program Files (x86)\\programma\\test.exe'" get version /format:list'
) DO (SET "RESULT_A=%%I")
ECHO %RESULT_A%
IF %RESULT_A% LSS 11.12.4.0 goto :Install ELSE goto :END
:INSTALL
cd "C:\Program Files (x86)\programma\"
start unins000.exe /NORESTART
:END
start \\server\map\test2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-