Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I detect and invoke a user's local installation of the AIR runtime on a particular AIR application?

I am writing a program that has an AIR front-end, but a back-end written in another language (Python, in this case). Since AIR can't invoke other executables, the relationship has to be the other way around, with Python running an AIR subprocess. How can I locate the user's AIR runtime? I'd like to be able to do this on Mac, Windows, and Linux.

(Ironically, this would be super easy if I could package the AIR debug runtime, but the licensing agreement requires that the user download the regular runtime themselves and run the installer.)

like image 221
Glyph Avatar asked Sep 22 '08 23:09

Glyph


People also ask

How do I launch Adobe AIR?

Find the file you want to open and double-click it. It should open automatically. If not, right-click on the file, go to Choose Program and select Adobe AIR. Click Open.

Where Adobe AIR is installed?

The AIR SDK is distributed as a standard file archive. To install AIR, extract the contents of the SDK to a folder on your computer (for example: C:\Program Files\Adobe\AIRSDK or C:\AIRSDK).

How do I install Adobe AIR on my PC?

Download the runtime installation file from http://get.adobe.com/air. Double-click the runtime installation file. In the installation window, follow the prompts to complete the installation.

How does Adobe AIR work?

The purpose of Adobe AIR is to enable developers to combine Adobe Flash, JavaScript, HTML, ActionScript, and Flex for the deployment of web apps on desktops, laptops, and other devices. It enables developers to create web apps that you can utilize outside of browsers.


1 Answers

First, you can get a (free) licenses to redistribute the AIR runtime installed:

See:

http://www.mikechambers.com/blog/2008/04/07/redistributing-the-adobe-air-runtime-installer/

and

http://www.adobe.com/products/air/runtime_distribution1.html#license

As far as launching an AIR application, you can launch it like any other native applications (since the AIR app is just a native app once it is installed).

As far as finding where the user installed the app, at least on Windows, I believe you can get the info programatically from the registry, based on on the appid of the AIR app you want to launch.

Finally, you can find a proof of concept on this here:

http://www.mikechambers.com/blog/2008/01/17/commandproxy-net-air-integration-proof-of-concept/

and

http://www.mikechambers.com/blog/2008/01/22/commandproxy-its-cool-but-is-it-a-good-idea/

mike

like image 105
mikechambers Avatar answered Oct 11 '22 10:10

mikechambers