Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Summary

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 https://royalairways/royalpkg.xpi as long as Software Installation is enabled on the browser:

if (InstallTrigger.enabled() ) {
    InstallTrigger.startSoftwareUpdate ("https://royalair.com/rasoft.xpi");
}

Document Tags and Contributors

 Contributors to this page: Sheppy, ethertank, trevorh, Fredchat, Callek, MozillAisawesome, Rod Whiteley
 Last updated by: Sheppy,