2019-10-03 03:26:53 +00:00
|
|
|
|
$ErrorActionPreference = 'Stop'; # stop on all errors
|
|
|
|
|
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
|
2024-10-03 14:37:54 +00:00
|
|
|
|
$url = 'https://e-sword.net/files/e-sword_1410_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'
|
2024-10-03 14:37:54 +00:00
|
|
|
|
checksum = '75765957BA9EA80C11DAD2DB4CB685D5'
|
2021-04-01 03:30:18 +00:00
|
|
|
|
checksumType = 'md5'
|
2019-10-03 03:26:53 +00:00
|
|
|
|
validExitCodes= @(0, 3010, 1641)
|
|
|
|
|
silentArgs = '/s /v"/qn"'
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-03 14:37:54 +00:00
|
|
|
|
Install-ChocolateyPackage @packageArgs # https://chocolatey.org/docs/helpers-install-chocolatey-package
|