Script to Deploy Executables

set InstallRevision=1.0
set TargetDir="%ProgramFiles%\Program Name"

REM Check to see if the software has been installed. Check for both 32 and 64 bit platforms.
if exist "%ProgramFiles(x86)%\Program Name" set TargetDir=%ProgramFiles(x86)%\Program Name"
if exist "%TargetDir%\%InstallRevision.txt" goto Finish

"\\FILESERVER01\Software\something.exe -quiet"
goto Finish


echo %InstallRevision% > "%TargetDir%\%InstallRevision%.txt"
goto Finish

Posted on Categories Codes

Leave a Reply

Your email address will not be published. Required fields are marked *