Files
ChocolateyPackages/Tunnelier/tools/chocolateyInstall.ps1
2012-10-10 11:55:17 -04:00

20 lines
613 B
PowerShell

try {
$package = 'Bitvise Tunnelier'
$url = 'http://dl.bitvise.com/BvSshClient-Inst.exe'
$installDir = ${Env:ProgramFiles(x86)}, $Env:ProgramFiles |
? { Test-Path $_ } | Select -First 1
$installDir = Join-Path $installDir 'Bitvise SSH Client'
# https://fogbugz.bitvise.com/default.asp?Tunnelier.2.11840.3
$params = '-acceptEULA', '-force', "-installDir=`"$installDir`"",
'-noDesktopIcon'
Install-ChocolateyPackage 'BvSshClient-Inst' 'exe' $params $url
Write-ChocolateySuccess $package
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
}