Posted On July 17, 2019

Script to Deploy Executables

kimconnect 0 comments
blog.KimConnect.com >> Codes >> 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

:Finish

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

:Finish
EXIT

Leave a Reply

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

Related Post

How To Improve WordPress Website Rendering Speed

These are the recommended plug-ins to enable caching, database cleaning, image compressing, and minify codes…

PowerShell: Use RoboCopy & Volume Shadow Copy to Mirror Terrabytes of Data

version 0.2 <#.DescriptionCurrent Features:1. Check for any errors on the Sources or Destinations and generate…

PowerShell: How To Bypass Double Hop Problems

# This is a working example of hoping without delegation. Fresh creds can be passed…