chore(HipChat): release 2.2.1164
This commit is contained in:
@@ -3,8 +3,7 @@
|
|||||||
<metadata>
|
<metadata>
|
||||||
<id>HipChat</id>
|
<id>HipChat</id>
|
||||||
<title>HipChat Client</title>
|
<title>HipChat Client</title>
|
||||||
<!-- really 1.20120926103402 -->
|
<version>2.2.1164</version>
|
||||||
<version>1.2.103402</version>
|
|
||||||
<authors>Atlassian</authors>
|
<authors>Atlassian</authors>
|
||||||
<owners>Ethan J Brown</owners>
|
<owners>Ethan J Brown</owners>
|
||||||
<summary>HipChat is instant messaging built for business.</summary>
|
<summary>HipChat is instant messaging built for business.</summary>
|
||||||
@@ -20,9 +19,6 @@ Get your team off AIM, Google Talk, and Skype — HipChat was built for business
|
|||||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||||
<iconUrl>https://github.com/Iristyle/ChocolateyPackages/raw/master/HipChat/HipChat.png</iconUrl>
|
<iconUrl>https://github.com/Iristyle/ChocolateyPackages/raw/master/HipChat/HipChat.png</iconUrl>
|
||||||
<releaseNotes></releaseNotes>
|
<releaseNotes></releaseNotes>
|
||||||
<dependencies>
|
|
||||||
<dependency id="AdobeAIR" />
|
|
||||||
</dependencies>
|
|
||||||
</metadata>
|
</metadata>
|
||||||
<files>
|
<files>
|
||||||
<file src="tools\**" target="tools" />
|
<file src="tools\**" target="tools" />
|
||||||
|
@@ -1,32 +1,14 @@
|
|||||||
$package = 'HipChat'
|
$package = 'HipChat'
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
$params = @{
|
||||||
$hipParams = @{
|
|
||||||
PackageName = $package;
|
PackageName = $package;
|
||||||
FileFullPath = (Join-Path $Env:TEMP 'hipchat.air');
|
FileType = 'msi';
|
||||||
Url = 'http://downloads.hipchat.com/hipchat.air'
|
SilentArgs = '/quiet';
|
||||||
|
Url = "https://www.hipchat.com/downloads/latest/qtwindows";
|
||||||
}
|
}
|
||||||
|
|
||||||
Get-ChocolateyWebFile @hipParams
|
Install-ChocolateyPackage @params
|
||||||
|
|
||||||
$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
|
|
||||||
|
|
||||||
Write-ChocolateySuccess $package
|
Write-ChocolateySuccess $package
|
||||||
} catch {
|
} catch {
|
||||||
|
@@ -2,17 +2,9 @@ $package = 'HipChat'
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$hipChatGuid = Get-ChildItem HKLM:\SOFTWARE\Classes\Installer\Products |
|
# http://stackoverflow.com/questions/450027/uninstalling-an-msi-file-from-the-command-line-without-using-msiexec
|
||||||
Get-ItemProperty -Name 'ProductName' |
|
$msiArgs = "/X{56B4BFF9-4967-4A84-A5B0-4B49AB070100} /qb-! REBOOT=ReallySuppress"
|
||||||
? { $_.ProductName -eq 'HipChat' } |
|
Start-ChocolateyProcessAsAdmin "$msiArgs" 'msiexec'
|
||||||
Select -ExpandProperty PSChildName -First 1
|
|
||||||
|
|
||||||
$properties = Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\$hipChatGuid\InstallProperties
|
|
||||||
|
|
||||||
$pkg = $properties.LocalPackage
|
|
||||||
|
|
||||||
# http://help.adobe.com/en_US/air/redist/WS485a42d56cd19641-70d979a8124ef20a34b-8000.html#WS485a42d56cd19641-70d979a8124ef20a34b-7ffa
|
|
||||||
msiexec.exe /x $pkg /qb-! REBOOT=ReallySuppress
|
|
||||||
|
|
||||||
Write-ChocolateySuccess $package
|
Write-ChocolateySuccess $package
|
||||||
} catch {
|
} catch {
|
||||||
|
Reference in New Issue
Block a user