mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
17 lines
668 B
PowerShell
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 |