From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- .../archive/mozilla/xpinstall/reference/index.html | 193 +++++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100644 files/pt-br/archive/mozilla/xpinstall/reference/index.html (limited to 'files/pt-br/archive/mozilla/xpinstall/reference/index.html') diff --git a/files/pt-br/archive/mozilla/xpinstall/reference/index.html b/files/pt-br/archive/mozilla/xpinstall/reference/index.html new file mode 100644 index 0000000000..f17f898062 --- /dev/null +++ b/files/pt-br/archive/mozilla/xpinstall/reference/index.html @@ -0,0 +1,193 @@ +--- +title: XPInstall API reference +slug: Archive/Mozilla/XPInstall/Reference +tags: + - NeedsTranslation + - TopicStub + - XPInstall + - XPInstall_API_reference +translation_of: Archive/Mozilla/XPInstall/Reference +--- +

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.

+ +

Objects

+ +

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
+
+
+
+ +

InstallTrigger

+ +
+
No properties
+
Methods
+
+ +
+
+
+
compareVersion
+
enabled
+
getVersion
+
install
+
installChrome
+
startSoftwareUpdate
+
+
+
+ +

InstallVersion

+ +
+
Properties
+
Methods
+
+ +
+
+
+
compareTo
+
init
+
toString
+
+
+
+ +

File

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

WinProfile

+ +
+
No properties
+
Methods
+
+ +
+
+
+
getString
+
writeString
+
+
+
+ +

WinReg

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

Other Information

+ +

Return Codes

+ +

See complete list

+ +

Examples

+ +
+
Trigger Scripts and Install Scripts
+
+ +
Code Samples
+ +
+
File.macAlias
+
File.windowsShortcut
+
Install.addDirectory
+
Install.addFile
+
InstallTrigger.installChrome
+
InstallTrigger.startSoftwareUpdate
+
Windows Install
+
-- cgit v1.2.3-54-g00ecf