$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