Methods

checkForUpdates()

Presents a user interface that checks for and displays the available updates.

void checkForUpdates();

Parameters

None.

showUpdateAvailable()

Shows a message advising the user that an update is available to be downloaded and installed. If the app.update.silent preference is true or the user interface is already displayed the call will be a no-op.

void showUpdateAvailable(
in nsIUpdate update
);

Parameters

showUpdateDownloaded()

Shows a message advising the user that an update has been downloaded, and that the user should restart the application in order to install it. If background is true (for example the download was not user initiated) and the app.update.silent preference is true the call will be a no-op.

showUpdateError()

Displays an error message telling the user about an update failure, such as a failure to successfully apply a patch. If the app.update.silent preference is true the call will be a no-op.

void showUpdateError(
in nsIUpdate update
);

Parameters

update

An nsIUpdate describing the update that failed to install. The nsIUpdate object will not be the actual update when the error occurred during an update check and will instead be an nsIUpdate object with the error information for the update check.

showUpdateHistory()

Shows a list of all updates that have been installed to date.

void showUpdateHistory(
in nsIDOMWindow parent
);

Parameters

parent

An nsIDOMWindow indicating the parent window to which to anchor the update list window. This can be null.

showUpdateInstalled()

Shows a message detailing the update that was just installed successfully. If the app.update.silent preference is true, the app.update.showInstalledUI preference is false, or the user interface is already displayed the call will be a no-op.