InstallerJS

Manage and customize the installation and distribution experience.

Overview

A distribution definition file defines the install experience for a product. The Installer application opens and interprets distribution definition files to generate the user interface users manipulate to execute and customize a product install.

Distribution definition files contain XML and JavaScript code. The XML code defines the structure of a distribution, while the JavaScript code defines and manages install-time properties, such as installation options. Distribution Definition XML Schema Reference describes the XML schema used to define the structure of a distribution.

This document describes the object model that the JavaScript code in a distribution definition file can use to manage user input and system properties.

Symbols

Classes

Applications

The Applications object provides methods to obtain information about running applications. This object is accessed using the system.applications property.

Choice

A Choice object represents a single installation choice. Choice objects are properties of the choices global variable and represent the installation choices defined in a distribution package.

Files

The Files object provides methods for accessing files. This object is accessed using the system.files property.

IORegistry

The IORegistry object provides access to the IOKit registry. This object is accessed using the system.ioregistry property.

ProcessInformation

A ProcessInformation object is a dictionary (associative array) describing an application. The following table describes the items available in the dictionary.

Result

The Result object provides methods to obtain information about the result of an Installation Check or Volume Check script. This object is accessed using the my.result property.

System

The System object provides access to information about the target host. This object is accessed using the system global variable.

Target

The Target object provides methods to obtain information about the installation volume. This object is accessed using the my.target property.