spotube/choco-struct/tools/chocolateyinstall.ps1
2022-01-18 11:10:02 +06:00

17 lines
668 B
PowerShell

$ErrorActionPreference = 'Stop'; # stop on all errors
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$fileLocation = Join-Path $toolsDir 'Spotube-windows-x86_64-setup.exe'
$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsDir
fileType = 'exe' #only one of these: exe, msi, msu
file = $fileLocation
softwareName = 'spotube*' #part or all of the Display Name as you see it in Programs and Features. It should be enough to be unique
silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' # Inno Setup
validExitCodes= @(0)
}
Install-ChocolateyInstallPackage @packageArgs