Skip to content

Instantly share code, notes, and snippets.

@Dedsec1
Created September 17, 2016 02:44
Show Gist options
  • Save Dedsec1/b5d43990068316209e7f9d14afb9429f to your computer and use it in GitHub Desktop.
Save Dedsec1/b5d43990068316209e7f9d14afb9429f to your computer and use it in GitHub Desktop.
$ErrorActionPreference = 'Stop';
$packageName= 'cryptocat'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://download.crypto.cat/client/Cryptocat-win32-x64.zip'
$url64 = 'https://download.crypto.cat/client/Cryptocat-win32-x64.zip'
$fileLocation = Join-Path $toolsDir 'Setup.exe'
$packageArgs = @{
packageName = $packageName
unzipLocation = $toolsDir
fileType = 'exe'
url = $url
url64bit = $url64
file = $fileLocation
softwareName = 'cryptocat*'
checksum = 'E6530325E19262FCBB71EC0B39A9F33F46F6B419'
checksumType = 'sha1'
checksum64 = 'E6530325E19262FCBB71EC0B39A9F33F46F6B419'
checksumType64= 'sha1'
validExitCodes= @(0, 3010, 1641)
}
Install-ChocolateyPackage @packageArgs
Install-ChocolateyZipPackage $packageName $url $toolsDir [$url64 -checksum $checksum -checksumType $checksumType -checksum64 $checksum64 -checksumType64 $checksumType64]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment