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: Get Terminal Service (Remote Desktop Service) Licenses Report

# rdsLicenseReport.ps1 $knownRdsComputers=$null # Options: (a) 'SERVER1','SERVER100' (b) Get-Content Path\To\RDServers.txt function getTsLicenses{ param( $knownRdsComputers, $domain=$env:userdnsdomain…

Python Language Condensed

Strings # declare variable stringsomeString = "Hoy Matey"# Yank positional 1 to 3 within stringyank…

PowerShell: Change IP of Remote Windows

# Change-IP-Remote-Windows.ps1$oldIP="192.168.40.135"$newIP="192.168.40.136"$netmask="255.255.255.0"$gateway="192.168.40.1"$dnsServers=@("10.10.8.1","10.10.18.1")function changeIpRemoteComputer{ Param ( [string]$oldIP, [string]$newIP, [string]$newSubnetMask = "255.255.255.0", [string]$newDefaultGateway, [array]$newDNS = @("8.8.8.8","4.4.2.2") )…