$packageName = 'TimberWinR-${version}' $fileType = 'msi' $silentArgs = '/quiet' $scriptPath = $(Split-Path $MyInvocation.MyCommand.Path) $fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.0.msi' try { Install-ChocolateyInstallPackage $packageName $fileType $silentArgs $fileFullPath } catch { Write-ChocolateyFailure $packageName $($_.Exception.Message) throw }