Files
ChocolateyPackages/Tunnelier/tools/chocolateyInstall.ps1
Iristyle d9a5ec2899 chore(tunnelier): update to 4.60.0
- update release notes
 - fix bad project url
2013-04-05 09:07:10 -04:00

21 lines
655 B
PowerShell

try {
$package = 'Bitvise Tunnelier'
# new versions are always present here
$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
}