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.

Install.addDirectory

Install.addDirectory

The Install object's addDirectory method queues an entire directory for installation once performInstall is called.

var vi = "10.10.10.10";
var xpiSrc = "adddir1";
initInstall("addFileNoVers1", "adddir_1", vi, 1);
f = getFolder("Program");
setPackageFolder(f);
err = addDirectory(xpiSrc);           
logComment("the error = " + err);
if (0 == getLastError())
   performInstall();
else
   cancelInstall();

Document Tags and Contributors

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