chocolatey-packages/e-sword/tools/chocolateyinstall.ps1

17 lines
No EOL
693 B
PowerShell

$ErrorActionPreference = 'Stop'; # stop on all errors
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://e-sword.net/files/e-sword_1210_setup.exe' # download url, HTTPS preferred
$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsDir
fileType = 'EXE'
url = $url
softwareName = 'e-Sword'
checksum = '3D3E01C1F289D4E6F4B83D1416650CCF572B615BA799CC9764D3B6259E6CEBBF'
checksumType = 'sha256'
validExitCodes= @(0, 3010, 1641)
silentArgs = '/s /v"/qn"'
}
Install-ChocolateyPackage @packageArgs # https://chocolatey.org/docs/helpers-install-chocolatey-package