Adobe AIR 3.4.0.2710

This commit is contained in:
Iristyle
2012-10-23 15:47:06 -04:00
parent 9c15f4f306
commit 903db12902
4 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
$package = 'AdobeAIR'
try {
$params = @{
PackageName = $package;
FileType = 'exe';
SilentArgs = '-silent -eulaAccepted';
Url = 'http://airdownload.adobe.com/air/win/download/3.4/AdobeAIRInstaller.exe'
}
Install-ChocolateyPackage @params
Write-ChocolateySuccess $package
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
}

View File

@@ -0,0 +1,22 @@
$package = 'AdobeAIR'
try {
# http://forums.adobe.com/message/4677900
$airInstall = 'Adobe AIR\Versions\1.0'
$airPath = $Env:CommonProgramFiles, ${Env:CommonProgramFiles(x86)} |
% { Join-Path $_ $airInstall } |
? { Test-Path $_ } |
Select -First 1
$airSetup = Join-Path $airPath 'setup.msi'
# http://stackoverflow.com/questions/450027/uninstalling-an-msi-file-from-the-command-line-without-using-msiexec
msiexec.exe /x "`"$airSetup`"" /qb-! REBOOT=ReallySuppress
# alternate -> wmic product where name='Adobe AIR' call uninstall
Remove-Item $airInstall -Recurse -ErrorAction SilentlyContinue
Write-ChocolateySuccess $package
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
}