WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIXPInstallManager

IID:83fdd52f-2d34-4e22-981d-cf3c4ae76faa
Inherits From:nsISupports

Interface to XPInstallManager - manages download and install operations.

This interface is implemented by the following components:


Methods

void initManagerFromChrome ( arrayof PRUnichar* URLs , PRUint32 URLCount , nsIXPIProgressDialog listener ) void initManagerWithHashes ( arrayof PRUnichar* URLs , arrayof char* hashes , PRUint32 URLCount , nsIXPIProgressDialog listener ) void initManagerWithInstallInfo ( nsIXPIInstallInfo installInfo )

void initManagerFromChrome ( arrayof PRUnichar* URLs , PRUint32 URLCount , nsIXPIProgressDialog listener )

Initiates a download and install operation of the supplied URLs and sends notifications to the supplied listener.

Arguments:
URLs: array of XPI urls to download and install
URLCount: number of XPI urls in uRLs
listener: a listener to receive status notifications

void initManagerWithHashes ( arrayof PRUnichar* URLs , arrayof char* hashes , PRUint32 URLCount , nsIXPIProgressDialog listener )

Initiates a set of downloads and checks the supplied hashes after download. Just like initManagerFromChrome() in all other respects

Arguments:
URLs: array of XPI urls to download and install
hashes: array of hash strings to validate. The entire array or individual hashes can be null to indicate no checking. If supplied looks like "type:hash", like "md5:3232bc5624041c507db0965324188024". Supports the types in nsICryptoHash
URLCount: number of XPI urls in uRLs and hashes
listener: a listener to receive status notifications

void initManagerWithInstallInfo ( nsIXPIInstallInfo installInfo )

Initiates a set of downloads based on an install info object. Will display confirmation dialog as if the install info had been supplied by content.

Arguments:
installInfo: The install info object providing install triggers and script context for the install.

Reference documentation is generated from Mozilla's source.