Skip to content

Instantly share code, notes, and snippets.

@chrisvasey
Created October 24, 2018 09:57
Show Gist options
  • Save chrisvasey/4d234445890be6af1a995bf55e88431d to your computer and use it in GitHub Desktop.
Save chrisvasey/4d234445890be6af1a995bf55e88431d to your computer and use it in GitHub Desktop.
zhool with choco
$ErrorActionPreference = 'Stop'; # stop on all errors
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$fileLocation = Join-Path $toolsDir '/source/zhool.exe'
$url = ''
$url64 = ''
$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsDir
fileType = 'exe' #only one of these: exe, msi, msu
# url = $url
# url64bit = $url64
file = $fileLocation
softwareName = 'zhool*' #part or all of the Display Name as you see it in Programs and Features. It should be enough to be unique
checksum = ''
checksumType = 'sha256' #default is md5, can also be sha1, sha256 or sha512
checksum64 = ''
checksumType64= 'sha256' #default is checksumType
validExitCodes= @(0, 3010, 1641)
# OTHERS
silentArgs = '/q' # NSIS
}
Install-ChocolateyInstallPackage @packageArgs #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment