Deploying Adobe AIR Apps

By | November 29, 2016

Happy belated Thanksgiving!

Recently had to do some work deploying an Adobe AIR application and came up with a nifty batch file that takes care of silently doing this for me. It has a few extras in there like disabling Adobe AIR update prompts and re-installing/updating the app if it already exists.

A few things to note before using this script:

  1. I’m using the Adobe AIR Runtime Installer. It allows to install offline and control what version I want to use. This script will work with the regular installer found on Adobe’s main website but if they come up with an updated version the install will fail due to it not being a current version and you will have to redownload the newer installer.

    http://www.adobe.com/products/air/runtime-distribution3.html

    Please make sure you follow all the distribution license agreements which might involve applying for a license and accepting the EULA on behalf of the organization.

  2. I’m setting the system date/time back to 2015 to address an issue with my particular app’s signature being expired. I commented these out here but if you run into the same issue just remove the “rem” in front of each line below. Just make sure you trust the source of the file.

    Line 26: date 11-21-15
    Line 28: net time \\time.windows.com /set /y

    adobeair-installer_damaged

    C:\Users\userid\AppData\Local\Adobe\AIR\logs

    …] Package signature validation failed…] Got an unexpected fatal error while unpackaging: [ErrorEvent type=”error” bubbles=false cancelable=false eventPhase=2 text=”invalid package signature” errorID=5022]

 

How to use:

Create a folder, in my case named AIR_App_Install, in the c:\temp directory. You can modify this as needed later.

Extract the Adobe AIR installer to that folder and make sure it is referenced correctly in the batch file (.bat) below.

Copy your application’s .air file to the folder.

Create a AIR_UpdateDisabled.reg file…

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\AIR]
"UpdateDisabled"=dword:00000001

Create a AIR_App_Install.bat file…

@echo off
rem Adobe AIR application install script
rem candisa.org
rem Author: VeneDude

cls
echo AppName vX.X.X Install Script
echo.

echo ************************************************************************
echo START: %date% %time%
echo.

echo If you know the executable for AppName, add it here and uncomment to close it before the install...
rem taskkill /F /im "AppName.exe"
echo.
echo Uncomment to uninstall AppName if already installed...
rem "C:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Adobe AIR Application Installer.exe" -uninstall -silent "C:\Program Files (x86)\AppName\AppName.exe"
echo.

echo Installing Adobe AIR...
"C:\temp\AIR_App_Install\AdobeAIR_Setup\Adobe AIR Installer.exe" -silent -eulaAccepted
regedit.exe /S C:\temp\AIR_App_Install\AIR_UpdateDisabled.reg
echo.
echo Install AppName...
rem date 11-21-15
"C:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Adobe AIR Application Installer.exe" -silent -eulaAccepted -programMenu "C:\temp\AIR_App_Install\AppName.air"
rem net time \\time.windows.com /set /y

:DONE
echo.
echo.
echo DONE!
echo END: %date% %time%
echo.