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

PowerShell: Optimize SQL Server Memory & CPU Resources

# optimizeSqlServer.ps1 # Version 0.0.2 # This version deals with Memory, CPU # Future versions…

PowerShell: Get Connected Port by Process Name

# getProcessConnectionPort.ps1 $computerlist=@' SQL1 SQL2 '@ $computernames=@($computerList -split "`n")|%{$_.Trim()} $processname='sqlservr' $state='Established' $results=@() foreach ($computername in…

Windows 10: Update Script

8/7/2020: there's an updated version of this script here. function updateWindows{# Set PowerShell Gallery as…