Visit Mozilla.org

XPInstall API Reference

From MDC

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.

Contents

[edit] Objects

[edit] Install

Properties
Methods
addDirectory
addFile
alert
cancelInstall
confirm
deleteRegisteredFile
execute
gestalt
getComponentFolder
getFolder
getLastError
getWinProfile
getWinRegistry
initInstall
loadResources
logComment
patch
performInstall
refreshPlugins
registerChrome
resetError
setPackageFolder

[edit] InstallTrigger

No properties
Methods
compareVersion
enabled
getVersion
install
installChrome
startSoftwareUpdate

[edit] InstallVersion

Properties
Methods
compareTo
init
toString

[edit] File

No properties
Methods
copy
dirCreate
dirGetParent
dirRemove
dirRename
diskSpaceAvailable
execute
exists
isDirectory
isFile
macAlias
modDate
modDateChanged
move
remove
rename
size
windowsGetShortName
windowsRegisterServer
windowsShortcut

[edit] WinProfile

No properties
Methods
getString
writeString

[edit] WinReg

No properties
Methods
createKey
deleteKey
deleteValue
enumKeys
enumValueNames
getValue
getValueNumber
getValueString
isKeyWritable
keyExists
setRootKey
setValue
setValueNumber
setValueString
valueExists
WinRegValue constructor

[edit] Other Information

[edit] Return Codes

See complete list

[edit] Examples

Trigger Scripts and Install Scripts

[edit] Code Samples

File.macAlias
File.windowsShortcut
Install.addDirectory
Install.addFile
InstallTrigger.installChrome
InstallTrigger.startSoftwareUpdate
Windows Install