diff --git a/AdobeAIR/AdobeAIR.jpg b/AdobeAIR/AdobeAIR.jpg new file mode 100644 index 0000000..41c880a Binary files /dev/null and b/AdobeAIR/AdobeAIR.jpg differ diff --git a/AdobeAIR/AdobeAIR.nuspec b/AdobeAIR/AdobeAIR.nuspec new file mode 100644 index 0000000..acb63df --- /dev/null +++ b/AdobeAIR/AdobeAIR.nuspec @@ -0,0 +1,24 @@ + + + + AdobeAIR + Adobe AIR Runtime + 3.4.0.2710 + Adobe + Ethan J Brown + Adobe AIR runtime is necessary for AIR based applications. + Adobe AIR is a cross-platform runtime that enables you to use your existing Flash/ActionScript or HTML/JavaScript development skills and tools to build and deploy applications, games, and videos outside the browser and on mobile devices. + + Note that AIR auto-updates itself after an initial install. + + http://get.adobe.com/air/ + web browser AIR + http://www.adobe.com/products/eulas + false + https://github.com/Iristyle/ChocolateyPackages/raw/master/AdobeAIR/AdobeAIR.jpg + + + + + + diff --git a/AdobeAIR/tools/chocolateyInstall.ps1 b/AdobeAIR/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..71a4977 --- /dev/null +++ b/AdobeAIR/tools/chocolateyInstall.ps1 @@ -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 +} diff --git a/AdobeAIR/tools/chocolateyUninstall.ps1 b/AdobeAIR/tools/chocolateyUninstall.ps1 new file mode 100644 index 0000000..513551c --- /dev/null +++ b/AdobeAIR/tools/chocolateyUninstall.ps1 @@ -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 +}