Signed, Sealed, Delivered
Once the application has been built, you can distribute the *.air
package generated by adt
to the users. In order to install the application and run it, the users must have the AIR environment installed. If not, they'll need to download it
To install the application, the users simply click on the *.air file (AirQuery.air in this case). They will be shown the install screen in Figure 2.
Once the user selects the directory where he or she wants to install the application (the screen following the one shown in Figure 2 provides the option to do so), an executable by the name that you specified in the XML application descriptor will be placed there, along with the supporting files. I deployed the project on a Windows machine in a directory called AirQuery. Figure 3 shows the contents of this directory.
|Figure 3. Deployment Directory Structure in Windows|
Other directories of interest include:
- The current user's Application Data\AirQuery\Local Store directory, where the SQLite database is placed (you can launch the application from the console with a parameter if you want to specify a database name other than the default test.db)
- The current user's My Documents directory, where the application logs events to the AirQuery.log file (functionality implemented by the log function in AirQuery.js; notice that the air.trace function is available only at debug time, when executing the code through adl; no messages will be written to the console by the compiled exe).
When deployed and run successfully a Windows machine, the application should appear on screen like Figure 4.
Can You Live Without AIR?