Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

InstallTrigger.startSoftwareUpdate

InstallTrigger.startSoftwareUpdate

This is a very simple example of the InstallTrigger object's principal method, startSoftwareUpdate, which takes a string representing the path to the XPI and installs that XPI on the local machine.

function triggerURL(url)
{
   InstallTrigger.startSoftwareUpdtate(url);
}
// get the url to the .xpi from either a form
// or text field entry. Then do:
... onclick="triggerURL(this.form.url.value);

Document Tags and Contributors

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