Here is an example of installing a new version of winzip. each time I install I post the computer name, time/date and version to ziplog.csv. The first 'findstr' writes the first line(record) it finds to wz.txt if it finds the computer name. If not go install. If computer name is found I check the version in the log (not in wz.txt)...delete wz.txt at the end of the routine, it is basically at temp file written to C:\.
:Check_Install_Log
findstr %computername% \\servername\Downloads\WinZip9.1\ziplog.csv>wz.txt
if errorlevel 1 GOTO Install
echo 9.0 already installed
:Check_Version
findstr "WINZIP9sr1" wz.txt
if errorlevel 1 GOTO Install
echo SR1 already installed
:Check_Install_Log
findstr %computername% \\servername\Downloads\WinZip9.1\ziplog.csv>wz.txt
if errorlevel 1 GOTO Install
echo 9.0 already installed
:Check_Version
findstr "WINZIP9sr1" wz.txt
if errorlevel 1 GOTO Install
echo SR1 already installed