Created
January 8, 2018 02:32
-
-
Save lefte/4a3070285de16225fdb6b8e9e5839607 to your computer and use it in GitHub Desktop.
Chocolatey Caffeine 1.64 Install PS1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ErrorActionPreference = 'Stop'; | |
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | |
$packageArgs = @{ | |
packageName = 'caffeine' | |
fileType = 'zip' | |
unzipLocation = $toolsDir | |
url = 'http://www.zhornsoftware.co.uk/caffeine/caffeine.zip' | |
checksum = '5CBAAEFAF4C24D3AF73B856C98B079FF4BCDF01CA104B179733FCA0616A05D8D' | |
checksumType = 'sha256' | |
validExitCodes = @(0) | |
} | |
echo "If an older version of Caffeine is running on this machine, it will be closed prior to the installation of the newer version." | |
ps caffeine -ea 0| kill | |
Install-ChocolateyZipPackage @packageArgs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment