Mozilla.com

Table of contents
  1. 1. enabled
    1. 1.1. Method of
    2. 1.2. Syntax
    3. 1.3. Parameters
    4. 1.4. Returns
    5. 1.5. Example
Table of contents
  1. 1. enabled
    1. 1.1. Method of
    2. 1.2. Syntax
    3. 1.3. Parameters
    4. 1.4. Returns
    5. 1.5. Example

enabled

Indicates whether or not Software Installation is enabled for this client machine.

Method of

InstallTrigger object

Syntax

Boolean enabled ();

Parameters

None

Returns

True if Software Installation is enabled for this client machine; otherwise, false. The method reflects the value of the Software Installation preference in the user interface, and of the xpinstall.enabled preference in pref.js.

Example

The following code uses the startSoftwareUpdate method to unconditionally trigger a download from http://royalairways/royalpkg.xpi as long as Software Installation is enabled on the browser:

if (InstallTrigger.enabled() )
    InstallTrigger.startSoftwareUpdate ("http://royalair.com/rasoft.xpi");
Languages

Page last modified 19:45, 3 Apr 2007 by Fredchat

Tags:

Files (0)