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

Parts of this page show the use of the XPInstall API. The majority of this API is now deprecated and as of Gecko 1.9 no longer available. Extension, Theme, and plug-in developers must switch away from install.js based packages to the new packaging scheme with an install.rdf manifest. In particular plugin developers should see how to package a plugin as an extension.

Methods

dirCreate
Creates a new directory.
dirGetParent
Returns an object representing the parent directory.
dirRemove
Removes a directory.
dirRename
Renames the specified directory.
copy
Makes a copy of the specified file.
diskSpaceAvailable
Returns the amount of disk space available in bytes.
exists
Returns a boolean value indicating whether the specified file exists or not.
execute
Queues a file for executing as part of the installation process.
isDirectory
Returns a boolean value indicating whether an object is a directory.
isFile
Returns a boolean value indicating whether an object is a file.
modDate
Returns a number representing the last modified date of the given file.
modDateChanged
Specifies whether the last modification on a file is older than a specified date
move
Moves a file from one location to another.
remove
Removes a file.
rename
Renames a file in place.
size
Returns the size of the file in bytes.
windowsShortcut
Creates a windows shortcut for a file.
macAlias
Creates a macintosh alias for a file.
windowsGetShortName
Returns the windows shortname of the path.
windowsRegisterServer
Registers DLLs with the registry.

Document Tags and Contributors

 Contributors to this page: fscholz, Sheppy, ethertank, trevorh, Daniel Veditz, Fredchat, Rod Whiteley
 Last updated by: fscholz,