chore(HipChat): release 2.2.1164
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user