Tuesday, October 13, 2009

Bundled Deployment of Adobe AIR applications in Windows - Using the Adobe AIR bundled runtime installer

Bundled Deployment of Adobe AIR applications in Windows - Using the Adobe AIR bundled runtime installer

ADOBE® AIR™ 1.5 Runtime Redistribution Instructions -http://help.adobe.com/en_US/AIR/1.5/air_runtime_redist/air_runtime_redist.pdf

Adobe AIR Runtime Redistribution Instructions
Once you have an Adobe® AIR™ Runtime Distribution License Agreement with Adobe® Systems Incorporated, you
may redistribute the Adobe AIR installer and installer files.

Obtaining permission to redistribute the runtime
To obtain permission to redistribute Adobe AIR, read the Adobe AIR Runtime Distribution Agreement and apply for
a license: http://www.adobe.com/products/air/runtime_distribution1.html
Also, be sure to read the Adobe AIR FAQ page, which contains important information on the runtime distribution
and license terms: http://www.adobe.com/products/air/runtime_distribution_faq.html
Important: You may distribute Adobe AIR with your product only if you follow the Adobe AIR Runtime Distribution
License Agreement application proces



We start with the assumption that the Adobe AIR runtime has not been installed on the target machine that we intend on installing our Adobe AIR application.

The AIR application we intend to install is called 'SP.air'


We must therefore create a bundled installation package that must

Install the Adobe AIR runtime on the target machine if not previously installed before proceeding to install the AIR application.
Update the Adobe AIR runtime if the existing installation is an older version.
Update the AIR application if the existing installation is an older version.
Install the AIR application with a prerequisite that the Adobe AIR runtime is installed.


This article shows us three different ways to go about creating a “windows based” bundled installation package for an AIR application.

Using the Adobe AIR bundled runtime installer

“”

Step 1: Download the Adobe AIR bundled runtime installer from the download site.
( Mac: DMG file, Win: ZIP file)

Step 2: Extract the contents of the file to a bundled runtime installer directory
e.g. C:\Installer\

Step 3: Rename the Adobe AIR installer to match the AIR application name.
e.g. Adobe AIR Installer.exe is changed to “SPInstaller.exe”

Step 4: Add the configuration file '.airinstall.cfg' to the bundled runtime installer directory.
e.g. C:\Installer\.airinstall.cfg

Step 5: Edit the airinstall.cfg to include the relative path to the AIR file to be installed
e.g. if the AIR file is located in C:\Installer\AirApp\SP.air,
we include the path “AirApp/SP.air” in the .airinstall.cfg file

The contents of the bundled runtime installer directory can now be deployed on a CD, DVD, USB, or DMG. Double clicking the renamed installer file will launch the bundled runtime installer.


We can only install one application at a time.