chore(HipChat): release 2.2.1164

This commit is contained in:
Iristyle
2014-08-24 09:39:29 -07:00
parent 2071659158
commit 5f60cddcf7
3 changed files with 9 additions and 39 deletions

View File

@@ -1,32 +1,14 @@
$package = 'HipChat'
try {
$hipParams = @{
$params = @{
PackageName = $package;
FileFullPath = (Join-Path $Env:TEMP 'hipchat.air');
Url = 'http://downloads.hipchat.com/hipchat.air'
FileType = 'msi';
SilentArgs = '/quiet';
Url = "https://www.hipchat.com/downloads/latest/qtwindows";
}
Get-ChocolateyWebFile @hipParams
$airInstall = 'Adobe AIR\Versions\1.0\Adobe AIR Application Installer.exe'
$airPath = $Env:CommonProgramFiles, ${Env:CommonProgramFiles(x86)} |
% { Join-Path $_ $airInstall } |
? { Test-Path $_ } |
Select -First 1
if (!$airPath)
{
Write-ChocolateyFailure $package 'Could not find AIR installer!'
return
}
$installPath = Join-Path $Env:ProgramFiles 'Hipchat'
$airParams = @('-silent', '-eulaAccepted', '-programMenu',
'-location', "`"$installPath`"", "`"$($hipParams.FileFullPath)`"")
Start-ChocolateyProcessAsAdmin -exeToRun $airPath -statements $airParams
Install-ChocolateyPackage @params
Write-ChocolateySuccess $package
} catch {