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

@@ -3,8 +3,7 @@
<metadata>
<id>HipChat</id>
<title>HipChat Client</title>
<!-- really 1.20120926103402 -->
<version>1.2.103402</version>
<version>2.2.1164</version>
<authors>Atlassian</authors>
<owners>Ethan J Brown</owners>
<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>
<iconUrl>https://github.com/Iristyle/ChocolateyPackages/raw/master/HipChat/HipChat.png</iconUrl>
<releaseNotes></releaseNotes>
<dependencies>
<dependency id="AdobeAIR" />
</dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />

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 {

View File

@@ -2,17 +2,9 @@ $package = 'HipChat'
try {
$hipChatGuid = Get-ChildItem HKLM:\SOFTWARE\Classes\Installer\Products |
Get-ItemProperty -Name 'ProductName' |
? { $_.ProductName -eq 'HipChat' } |
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
# http://stackoverflow.com/questions/450027/uninstalling-an-msi-file-from-the-command-line-without-using-msiexec
$msiArgs = "/X{56B4BFF9-4967-4A84-A5B0-4B49AB070100} /qb-! REBOOT=ReallySuppress"
Start-ChocolateyProcessAsAdmin "$msiArgs" 'msiexec'
Write-ChocolateySuccess $package
} catch {