2019-10-03 03:26:53 +00:00
|
|
|
|
$ErrorActionPreference = 'Stop'; # stop on all errors
|
|
|
|
|
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
|
2020-12-10 20:48:32 +00:00
|
|
|
|
$url = 'https://e-sword.net/files/e-sword_1220_setup.exe' # download url, HTTPS preferred
|
2019-10-03 03:26:53 +00:00
|
|
|
|
|
|
|
|
|
$packageArgs = @{
|
|
|
|
|
packageName = $env:ChocolateyPackageName
|
|
|
|
|
unzipLocation = $toolsDir
|
|
|
|
|
fileType = 'EXE'
|
|
|
|
|
url = $url
|
|
|
|
|
softwareName = 'e-Sword'
|
2020-12-10 20:48:32 +00:00
|
|
|
|
checksum = '26aa2ae3342ae214b4598d031f1cd0c3d237bec1fb69419349c0560532e9769d'
|
2019-10-03 03:26:53 +00:00
|
|
|
|
checksumType = 'sha256'
|
|
|
|
|
validExitCodes= @(0, 3010, 1641)
|
|
|
|
|
silentArgs = '/s /v"/qn"'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Install-ChocolateyPackage @packageArgs # https://chocolatey.org/docs/helpers-install-chocolatey-package
|