Skip to content

Instantly share code, notes, and snippets.

@lefte
Created January 8, 2018 02:32
Show Gist options
  • Save lefte/4a3070285de16225fdb6b8e9e5839607 to your computer and use it in GitHub Desktop.
Save lefte/4a3070285de16225fdb6b8e9e5839607 to your computer and use it in GitHub Desktop.
Chocolatey Caffeine 1.64 Install PS1
$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