PowerShell/Data/powershell-scripts/tools/chocolateyinstall.ps1

43 lines
704 B
PowerShell
Raw Normal View History

2022-08-30 10:01:06 +02:00

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