|
|
Installation and updatesContents [Hide]AIR applications are distributed via AIR installer files which use the air extension. When Adobe AIR is installed and an AIR installer file is opened, the runtime administers the installation process. Note: Developers can specify a version, and application
name, and a publisher source, but the initial application installation
workflow itself cannot be modified. This restriction is advantageous
for users because all AIR applications share a secure, streamlined,
and consistent installation procedure administered by the runtime.
If application customization is necessary, it can be provided when
the application is first executed.
Runtime installation locationAIR applications first require the runtime to be installed on a user's computer, just as SWF files first require the Flash Player browser plug-in to be installed. The runtime is installed to the following location on a user's computer:
On Mac OS, to install an updated version of an application, the user must have adequate system privileges to install to the application directory. On Windows and Linux, a user must have administrative privileges. The runtime can be installed in two ways: using the seamless install feature (installing directly from a web browser) or via a manual install. For more information, see Distributing, Installing, and Running AIR applications. Seamless install (runtime and application)The seamless install feature provides developers with a streamlined installation experience for users who do not have Adobe AIR installed yet. In the seamless install method, the developer creates a SWF file that presents the application for installation. When a user clicks in the SWF file to install the application, the SWF file attempts to detect the runtime. If the runtime cannot be detected it is installed, and the runtime is activated immediately with the installation process for the developer's application. Manual installAlternatively, the user can manually download and install the runtime before opening an AIR file. The developer can then distribute an AIR file by different means (for instance, via e-mail or an HTML link on a website). When the AIR file is opened, the runtime begins to process the application installation. For more information on this process, see Distributing, Installing, and Running AIR applications Application installation flowThe AIR security model allows users to decide whether to install an AIR application. The AIR install experience provides several improvements over native application install technologies that make this trust decision easier for users:
In general, users should not install any desktop application that comes from a source that they do not trust, or that cannot be verified. The burden of proof on security for native applications is equally true for AIR applications as it is for other installable applications. Application destinationThe installation directory can be set using one of the following two options:
The AIR file systemThe install process for AIR applications copies all files that the developer has included within the AIR installer file onto the user's local computer. The installed application is composed of:
An AIR application is run by:
The application file system also includes subdirectories related to the function of the application. For example, information written to encrypted local storage is saved to a subdirectory in a directory named after the application identifier of the application. AIR application storageAIR applications have privileges to write to any location on the user's hard drive; however, developers are encouraged to use the app-storage:/ path for local storage related to their application. Files written to app-storage:/ from an application are located in a standard location depending on the user's operating system:
You can access the application storage directory via the air.File.applicationStorageDirectory property. You can access its contents using the resolvePath() method of the File class. For details, see Working with the file system. Updating Adobe AIRWhen the user installs an AIR application that requires an updated version of the runtime, the runtime automatically installs the required runtime update. To update the runtime, a user must have administrative privileges for the computer. Updating AIR applicationsDevelopment and deployment of software updates are one of the biggest security challenges facing native code applications. The AIR API provides a mechanism to improve this: the Updater.update() method can be invoked upon launch to check a remote location for an AIR file. If an update is appropriate, the AIR file is downloaded, installed, and the application restarts. Developers can use this class not only to provide new functionality but also respond to potential security vulnerabilities. Note: Developers can specify the version of an application
by setting the version property of the application descriptor file.
AIR does not interpret the version string in any way. Thus version
“3.0” is not assumed to be more current than version “2.0.” It is up
to the developer to maintain meaningful versioning. For details,
see Defining properties in the application descriptor file.
Uninstalling an AIR applicationA user can uninstall an AIR application:
Removing an AIR application removes all files in the application directory. However, it does not remove files that the application may have written to outside of the application directory. Removing AIR applications does not revert changes the AIR application has made to files outside of the application directory. Uninstalling Adobe AIRAIR can be uninstalled:
Windows registry settings for administratorsOn Windows, administrators can configure a machine to prevent (or allow) AIR application installation and runtime updates. These settings are contained in the Windows registry under the following key: HKLM\Software\Policies\Adobe\AIR. They include the following:
|