2022-08-30 10:01:06 +02:00
|
|
|
|
|
|
|
|
|
$ErrorActionPreference = 'Stop';
|
2022-08-29 09:45:29 +02:00
|
|
|
|
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
|
2022-08-30 10:01:06 +02:00
|
|
|
|
$url = ''
|
|
|
|
|
$url64 = ''
|
2022-08-29 09:45:29 +02:00
|
|
|
|
|
|
|
|
|
$packageArgs = @{
|
|
|
|
|
packageName = $env:ChocolateyPackageName
|
|
|
|
|
unzipLocation = $toolsDir
|
2022-08-30 10:01:06 +02:00
|
|
|
|
fileType = 'EXE'
|
2022-08-29 09:45:29 +02:00
|
|
|
|
url = $url
|
|
|
|
|
url64bit = $url64
|
|
|
|
|
|
2022-08-30 10:01:06 +02:00
|
|
|
|
softwareName = 'powershell-scripts*'
|
2022-08-29 09:45:29 +02:00
|
|
|
|
|
|
|
|
|
checksum = ''
|
2022-08-30 10:01:06 +02:00
|
|
|
|
checksumType = 'sha256'
|
2022-08-29 09:45:29 +02:00
|
|
|
|
checksum64 = ''
|
2022-08-30 10:01:06 +02:00
|
|
|
|
checksumType64= 'sha256'
|
2022-08-29 09:45:29 +02:00
|
|
|
|
|
2022-08-30 10:01:06 +02:00
|
|
|
|
silentArgs = "/qn /norestart /l*v `"$($env:TEMP)\$($packageName).$($env:chocolateyPackageVersion).MsiInstall.log`""
|
2022-08-29 09:45:29 +02:00
|
|
|
|
validExitCodes= @(0, 3010, 1641)
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-30 10:01:06 +02:00
|
|
|
|
Install-ChocolateyPackage @packageArgs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|