1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
|
---
title: Bản Kê Khai Cài Đặt
slug: orphaned/Bản_Kê_Khai_Cài_Đặt
original_slug: Bản_Kê_Khai_Cài_Đặt
---
<h2 id="Giới_Thiệu">Giới Thiệu</h2>
<p>Một Bản Kê Khai Cài Đặt (Install Manifest) là một tập tin mà một ứng dụng XUL - được bật mở trình Quản lý Tiện ích - sử dụng để xác định các thông tin về tiện ích khi nó được cài đặt. Nó chứa các siêu dữ liệu (metadata) để nhận diện tiện ích, cung cấp thông tin về người đã tạo ra nó, nơi mà các thông thêm về nó có thể được tìm thấy, các phiên bản nào của ứng dụng nào mà nó tương thích, làm sao để nó luôn được cập nhật, và nhiều thứ khác.</p>
<p>Định dạng của Bản Kê Khai Cài Đặt là RDF/XML.</p>
<p>Tập tin này phải được đặt tên là <code>install.rdf</code> và luôn có ở cấp cao nhất trong tập tin XPI của tiện ích.</p>
<h2 id="Bố_Cục">Bố Cục</h2>
<p>Bố cục cơ bản của một Bản Kê Khai Cài Đặt tương tự như sau:</p>
<pre class="eval"><?xml version="1.0"?>
<RDF xmlns="<span class="nowiki">http://www.w3.org/1999/02/22-rdf-syntax-ns#</span>"
xmlns:em="<span class="nowiki">http://www.mozilla.org/2004/em-rdf#</span>">
<Description about="urn:mozilla:install-manifest">
<!-- các thuộc tính -->
</Description>
</RDF>
</pre>
<p>Một số thuộc tính là bắt buộc, số khác là tùy chọn. Một số cái chỉ có giá trị chuỗi đơn giản, số khác lại là tài nguyên phức tạp.</p>
<h2 id="Required_Property_Reference" name="Required_Property_Reference">Các Thuộc Tính Bắt Buộc</h2>
<p>Bản Kê Khai Cài Đặt phải đặc tả những thuộc tính này một cách chính xác nếu không tiện ích của bạn có lẽ sẽ không được cài.</p>
<h3 id="id" name="id">id</h3>
<p>Định danh (id) của phần mở rộng, nó là một:</p>
<ul>
<li><a href="/en-US/docs/Generating_GUIDs" title="Generating_GUIDs">GUID</a> (Firefox 1.0)</li>
<li>{{ Fx_minversion_inline(1.5) }} Một chuỗi định dạng giống như: <code class="plain">extensionname@organization.tld</code></li>
</ul>
<p>The latter format is significantly easier to generate and manipulate. Firefox 1.5 has checking to ensure that your id falls into one format or the other and will refuse to install addons that have malformed ids.</p>
<p><strong>Examples</strong></p>
<pre class="eval"><em:id><a class="link-mailto" href="mailto:myextension@mysite.com" rel="freelink">myextension@mysite.com</a></em:id>
<em:id>{daf44bf7-a45e-4450-979c-91cf07434c3d}</em:id></pre>
<h3 id="version" name="version">version</h3>
<p>A version string identifying the version of the addon being supplied.</p>
<p>For Firefox/Thunderbird 1.0, the format must conform to the rules specified in <a href="/en-US/docs/Extension_Versioning,_Update_and_Compatibility" title="Extension_Versioning,_Update_and_Compatibility">Extension Versioning, Update and Compatibility</a>. For Firefox/Thunderbird 1.5, see <a href="/en-US/docs/Toolkit_version_format" title="Toolkit_version_format">Toolkit version format</a>.</p>
<p><strong>Examples</strong></p>
<pre class="eval"><em:version>2.0</em:version>
<em:version>1.0.2</em:version>
<em:version>0.4.1.2005090112</em:version></pre>
<p><strong>Firefox 1.5 / XULRunner 1.8</strong> - addons that do not use a valid version format will not be installed. The version format is different from, although backwards-compatible with, 1.0's.</p>
<p><strong>For addons hosted on addons.mozilla.org</strong> - Mozilla's update website may repackage your addon and correct or reject malformed version strings.</p>
<h3 id="type" name="type">type</h3>
<p>An integer value representing the type of addon.</p>
<table>
<tbody>
<tr>
<td>2</td>
<td>Extensions</td>
</tr>
<tr>
<td>4</td>
<td>Themes</td>
</tr>
<tr>
<td>8</td>
<td>Locale</td>
</tr>
<tr>
<td>32</td>
<td><a href="/en-US/docs/Multiple_Item_Packaging" title="Multiple_Item_Packaging">Multiple Item Package</a></td>
</tr>
</tbody>
</table>
<p><strong>Examples</strong></p>
<pre class="eval"><em:type>2</em:type></pre>
<p>{{ Fx_minversion_inline(1.5) }} This property was added for Firefox 1.5, and is only required for addon types other than Extensions and Themes.</p>
<p>{{ Fx_minversion_inline(3) }} Firefox 2 and previous supported a value of 16 to represent plug-ins. In Firefox 3 this has been removed.</p>
<h3 id="targetApplication" name="targetApplication">targetApplication</h3>
<p>An object specifying an application targeted by this addon. This means that the addon will work with the application identified by the id property (<code><em:id></code>) specified (for a comprehensive list of application IDs and valid min/maxVersions for them see <a class="link-https" href="https://addons.mozilla.org/en-US/firefox/pages/appversions">Valid application versions for add-on developers</a>), from the minimum version (<code><em:minVersion></code>) up to and including the maximum version (<code><em:maxVersion></code>). These version strings are formatted in the same fashion as the <a href="#version"><code>version</code> property</a> and will be compared to the application version; this allows the extension author to specify which versions of Firefox an extension has been tested with.</p>
<div class="note">
Extensions compatible with Firefox 3.5 should specify a <code>maxVersion</code> of<code> 3.5.*</code>, so that they are automatically compatible with security and stability updates. For Firefox 3.0, a <code>maxVersion</code> of<code> 3.0.*</code> should be used. Extensions compatible only with Firefox or Thunderbird 2 should specify a <code>maxVersion</code> of <code>2.0.0.*</code>.</div>
<p>The Install Manifest must specify at least one of these objects, and may specify more if the addon targets multiple applications that support the Add-on Manager (e.g. Firefox and Thunderbird)</p>
<p><strong>Examples</strong></p>
<pre class="eval"><em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <span class="comment">Firefox</span>
<em:minVersion>1.5</em:minVersion>
<em:maxVersion>3.0.*</em:maxVersion>
</Description>
</em:targetApplication>
</pre>
<p>{{ Fx_minversion_inline(3) }} Gecko 1.9 based applications allow you to use the special <code>targetApplication </code>id <code class="plain">toolkit@mozilla.org</code> to say that the add-on is compatible with any toolkit app with a toolkit version matching the <code>minVersion</code> and <code>maxVersion</code>.</p>
<h3 id="name" name="name">name</h3>
<p>The name of the add-on; intended for display in the UI.</p>
<p><strong>Examples </strong></p>
<pre class="eval"><em:name>My Extension</em:name></pre>
<h2 id="Optional_Property_Reference" name="Optional_Property_Reference">Optional Property Reference</h2>
<p>You may need to supply these properties, depending on the capabilities of your add-on.</p>
<h3 id="localized" name="localized">localized</h3>
<p>{{ Fx_minversion_inline(3) }} Allows you to localize the add-on's name, description, contributors and other metadata. The localized description must specify at least one <code>em:locale</code> which indicates which locales to use this information for.</p>
<p><strong>Examples</strong></p>
<p>This declares a set of add-on metadata to be displayed when the application is running in the de-DE locale.</p>
<pre><em:localized>
<Description>
<em:locale>de-DE</em:locale>
<em:name>Tab Sidebar</em:name>
<em:description>Zeigt in einer Sidebar Vorschaubilder der Inhalte aller offenen Tabs an.</em:description>
</Description>
</em:localized>
</pre>
<p>The following properties which are described elsewhere in this page can be included in the localized property:</p>
<ul>
<li>name</li>
<li>description</li>
<li>creator</li>
<li>homepageURL</li>
<li>developer</li>
<li>translator</li>
<li>contributor</li>
</ul>
<p>More documentation can be found at <a href="/en-US/docs/Localizing_extension_descriptions" title="Localizing_extension_descriptions">Localizing extension descriptions</a>.</p>
<h3 id="description" name="description">description</h3>
<p>A short description of the add-on - intended for display in the user interface. This description should fit on one short line of text.</p>
<p><strong>Examples</strong></p>
<pre class="eval"><em:description>Advanced foo tools.</em:description>
</pre>
<h3 id="creator" name="creator">creator</h3>
<p>The name of the creator/principal developer - intended for display in the user interface.</p>
<p><strong>Examples</strong></p>
<pre class="eval"><em:creator>John Doe</em:creator>
</pre>
<p>or</p>
<pre class="eval"><em:creator>CoolExtension Team</em:creator>
</pre>
<h3 id="developer" name="developer">developer</h3>
<p>{{ Fx_minversion_inline(2) }} The name(s) of co-developers. You may specify more than one of this value to specify multiple developers.</p>
<p><strong>Examples</strong></p>
<pre class="eval"><em:developer>Jane Doe</em:developer>
<em:developer>Koos van der Merwe</em:developer>
</pre>
<h3 id="translator" name="translator">translator</h3>
<p>{{ Fx_minversion_inline(2) }} The name(s) of translators. You may specify more than one of this value to specify multiple translators.</p>
<p><strong>Examples</strong></p>
<pre class="eval"><em:translator>Janez Novak</em:translator>
<em:translator>Kari Nordmann</em:translator>
</pre>
<h3 id="contributor" name="contributor">contributor</h3>
<p>The name(s) of additional contributors. You may specify more than one of this value to specify multiple contributors.</p>
<p><strong>Examples</strong></p>
<pre class="eval"><em:contributor>John Doe</em:contributor>
<em:contributor>John Doe</em:contributor>
<em:contributor>Jane Doe</em:contributor>
<em:contributor>Elvis Presley</em:contributor>
</pre>
<h3 id="homepageURL" name="homepageURL">homepageURL</h3>
<p>A link to the addon's home page - intended for display in the user interface.</p>
<p><strong>Examples</strong></p>
<pre class="eval"><em:homepageURL><span class="nowiki">http://www.foo.com/</span></em:homepageURL>
</pre>
<h3 id="updateURL" name="updateURL">updateURL</h3>
<p>A link to a custom Update Manifest file that specifies available updates to the addon. The format is described below. If enabled, the addon manager periodically checks with this Manifest file to determine if newer versions are available.</p>
<div class="note">
<strong>Note:</strong> It is strongly recommended that the <code>updateURL</code> be an HTTPS (secure) link. Non-secure update URLs can be hijacked by a malicious <code>update.rdf</code> file, enabling malware to infiltrate the user's computer. <strong>Alternatively, you could host your extension on </strong><a class="external" href="http://addons.mozilla.org"><strong>AMO</strong></a><strong> and leave out the <code>updateURL</code> completely.</strong> This provides secure updates automatically.</div>
<p>{{ Fx_minversion_inline(3) }} For security reasons, Gecko 1.9 applications <strong>require</strong> that if you specify an <code>updateURL</code>, it must be an https URL, or you must include an <code><a href="#updateKey">updateKey</a></code>.</p>
<p>Your server must send this file as <code>text/rdf</code>, <code>text/xml</code> or <code>application/xml+rdf</code> or the update checker may not work.</p>
<p>The addon manager will substitute the following values into this URL in case you wish to generate the response RDF dynamically, such as using PHP or CGI:</p>
<table>
<tbody>
<tr>
<td><code>%REQ_VERSION%</code></td>
<td>The version of the request. Currently 1</td>
</tr>
<tr>
<td><code>%ITEM_ID%</code></td>
<td>The <code>id</code> of the addon being updated</td>
</tr>
<tr>
<td><code>%ITEM_VERSION%</code></td>
<td>The <code>version</code> of the addon being updated</td>
</tr>
<tr>
<td><code>%ITEM_MAXAPPVERSION%</code></td>
<td>The <code>maxVersion</code> of the <code>targetApplication</code> object corresponding to the current application for the addon being updated.</td>
</tr>
<tr>
<td><code>%ITEM_STATUS%</code></td>
<td>{{ Fx_minversion_inline(2) }} Comma separated list of the add-ons operating status in the application. Contains at the least either <code>userEnabled</code> or <code>userDisabled</code> plus any number of <code>incompatible</code>, <code>blockslisted</code> or <code>needsDependencies</code>.</td>
</tr>
<tr>
<td><code>%APP_ID%</code></td>
<td>The <code>id</code> of the current application</td>
</tr>
<tr>
<td><code>%APP_VERSION%</code></td>
<td>The <code>version</code> of the application to check for updates for</td>
</tr>
<tr>
<td><code>%CURRENT_APP_VERSION%</code></td>
<td>{{ Fx_minversion_inline(3.5) }} The <code>version</code> of the current application</td>
</tr>
<tr>
<td><code>%APP_OS%</code></td>
<td>{{ Fx_minversion_inline(1.5) }} The value of <code><a href="/en-US/docs/OS_TARGET" title="OS_TARGET">OS_TARGET</a></code> from the Firefox build system, identifying the operating system being used.</td>
</tr>
<tr>
<td><code>%APP_ABI%</code></td>
<td>{{ Fx_minversion_inline(1.5) }} The value of the <code><a href="/en-US/docs/XPCOM_ABI" title="XPCOM_ABI">TARGET_XPCOM_ABI</a></code> value from the Firefox build system, identifying the compiler/architecture combination used to compile the current application.</td>
</tr>
<tr>
<td><code>%APP_LOCALE%</code></td>
<td>{{ Fx_minversion_inline(3) }} The current application's locale.</td>
</tr>
</tbody>
</table>
<p><strong>Examples</strong></p>
<pre class="eval"><em:updateURL><span class="nowiki">http://www.foo.com/update.cgi?id=%ITEM_ID%&amp;version=%ITEM_VERSION%</span></em:updateURL>
<em:updateURL><span class="nowiki">http://www.foo.com/extension/windows.rdf</span></em:updateURL>
</pre>
<p><strong>For addons hosted on addons.mozilla.org:</strong> You may not specify an <code>updateURL</code> property. By default, Mozilla applications using the Addon Manager (such as Firefox and Thunderbird) will send update requests to <code>addons.mozilla.org</code> using the default web service. Every time you upload a new version of your addon or change its compatibility parameters through the author interface, your update manifest will be generated automatically. Addons currently marked as <a class="link-https" href="https://addons.mozilla.org/firefox/pages/experimentalAddons">experimental</a> will not be updated due to security concerns.</p>
<p><strong>Format of the Update Manifest:</strong> The Update Manifest is a RDF/XML datasource. For examples of an update manifest, see <a href="/en-US/docs/Extension_Versioning,_Update_and_Compatibility#Update_RDF_Format" title="Extension_Versioning,_Update_and_Compatibility#Update_RDF_Format">Extension Versioning, Update and Compatibility</a> and <a href="/en-US/docs/Enabling_Extension_Updates_(external)" title="Enabling_Extension_Updates_(external)">Enabling Extension Updates (external)</a>.</p>
<h3 id="updateKey" name="updateKey">updateKey</h3>
<p>{{ Gecko_minversion_header(1.9) }} {{ Fx_minversion_header(3) }}</p>
<p>To ensure the security of update rdf data that is retrieved over plain http you must use a digital signature to verify the contents of the data. In order to do so you must include the public part of the cryptographic key in an updateKey entry in the install.rdf of the add-on. This can be generated using the <a href="/en-US/docs/McCoy" title="McCoy">McCoy</a> tool. Any line breaks and whitespace as part of this entry are ignored.</p>
<p><strong>Examples</strong></p>
<pre class="eval"> <em:updateKey>MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDK426erD/H3XtsjvaB5+PJqbhj
Zc9EDI5OCJS8R3FIObJ9ZHJK1TXeaE7JWqt9WUmBWTEFvwS+FI9vWu8058N9CHhD
NyeP6i4LuUYjTURnn7Yw/IgzyIJ2oKsYa32RuxAyteqAWqPT/J63wBixIeCxmysf
awB/zH4KaPiY3vnrzQIDAQAB</em:updateKey>
</pre>
<h3 id="optionsURL" name="optionsURL">optionsURL</h3>
<p>The <code>chrome://</code> URL of the extension's options dialog box. This is only useful to extensions. If this property is specified, when the extension is selected in the Extensions list, the Options button is enabled and will show this.</p>
<p><strong>Examples</strong></p>
<pre class="eval"><em:optionsURL><a class="external" rel="freelink">chrome://myext/content/options.xul</a></em:optionsURL>
</pre>
<h3 id="aboutURL" name="aboutURL">aboutURL</h3>
<p>The<code>chrome://</code> URL of the extension's about dialog box. This is only useful to extensions. If this property is specified, when the extension is selected in the Extensions list, the About... link in the extension's context menu will show this dialog, rather than the default.</p>
<p><strong>Examples</strong></p>
<pre class="eval"><em:aboutURL><a class="external" rel="freelink">chrome://myext/content/about.xul</a></em:aboutURL>
</pre>
<h3 id="iconURL" name="iconURL">iconURL</h3>
<p>A <code>chrome://</code> URL to a 32x32 icon to display in the add-ons list. If this property is not specified, a default icon is used.</p>
<pre class="eval"><em:iconURL><a class="external" rel="freelink">chrome://myext/skin/icon.png</a></em:iconURL></pre>
<div class="note">
<strong>Note:</strong> For the above example to work you will also have to add a <code>skin package</code> line to your <code>chrome.manifest</code> file. See <a href="/en-US/docs/Chrome_Registration#skin" title="Chrome_Registration#skin">Chrome Registration#skin</a>. Alternatively you can place your icon in the directory specified in your <code>content package</code> line.</div>
<p>{{ gecko_minversion_note("1.9.2", "Starting in Gecko 1.9.2 (Firefox 3.6), you can also simply include your icon, named <code>icon.png</code>, in the base directory of the add-on. This allows your add-on's icon to be displayed even when the add-on is disabled, or if the manifest is missing an <code>iconURL</code> entry.") }}</p>
<h3 id="targetPlatform" name="targetPlatform">targetPlatform</h3>
<p>{{ Fx_minversion_inline(1.5) }} A string specifying a platform that the addon supports. It contains either the value of <a href="/en-US/docs/OS_TARGET" title="OS_TARGET">OS_TARGET</a> alone or combined with <a href="/en-US/docs/XPCOM_ABI" title="XPCOM_ABI">TARGET_XPCOM_ABI</a>, separated by an underscore (_).</p>
<p>You can specify multiple targetPlatform properties per manifest. If any value matches the application's build parameters, it will be installed; if not, the user will get an appropriate error message.</p>
<p><strong>Examples</strong></p>
<pre><em:targetPlatform>WINNT_x86-msvc</em:targetPlatform>
<em:targetPlatform>Linux</em:targetPlatform>
<em:targetPlatform>Darwin_ppc-gcc3</em:targetPlatform>
<em:targetPlatform>SunOS_sparc-sunc</em:targetPlatform>
</pre>
<p>Usually, you would use only the OS part for themes or for extensions that are not fully cross-platform. For extensions including binary (compiled) components, you should never use the OS alone, but include the <a href="/en-US/docs/XPCOM_ABI" title="XPCOM_ABI">ABI (s)</a> that you compiled the components with. If you want to include multiple versions of the components, you should also use <a href="/en-US/docs/Bundles#Platform-specific_Subdirectories" title="Bundles#Platform-specific_Subdirectories">Platform-specific Subdirectories</a>.</p>
<p><strong>Notes</strong></p>
<ul>
<li>In the same manifest file, you could even mix values with and without ABI. If a value for the application's OS is encountered that requires any specific ABI, the ABI is considered important for that OS and the application will refuse to install the addon if it does not find a matching OS/ABI combination. This means that if all of the above examples would occur in one manifest, the addon will install on any Linux build of the application, regardless of its ABI, but not on a Windows Cygwin build.</li>
<li>There may be builds of Firefox and Thunderbird which do not "know" their ABI (most likely ports to rare platforms, or non-official builds). These builds will refuse to install any addon that requires a specific ABI for their platform.</li>
</ul>
<p>This property was added for Firefox/Thunderbird 1.5. Previous versions of these applications will ignore the restrictions and install the addon regardless of the platform.</p>
<h3 id="requires" name="requires">requires</h3>
<p>{{ Fx_minversion_inline(2) }} This tag has a similar syntax to the <code><em:targetApplication></code> tag. If the add-on specified by the <code><em:id></code> tag is not installed or has an incompatible version, the extension manager will disable your extension and show the message "Requires additional items". You can add as many <code><em:requires></code> tags as you like. Your extension will be disabled if any of the specified requirements fail.</p>
<p><strong>Example</strong></p>
<pre><em:requires>
<Description>
<!-- Lightning -->
<em:id>{e2fda1a4-762b-4020-b5ad-a41df1933103}</em:id>
<em:minVersion>0.5pre</em:minVersion>
<em:maxVersion>0.5pre</em:maxVersion>
</Description>
</em:requires>
</pre>
<p><strong>Notes</strong></p>
<ul>
<li>Currently, only <code><em:id></code>, <code><em:minVersion></code>, <code><em:maxVersion></code> are parsed inside the <code><em:requires></code> tag.</li>
<li>It is not currently possible to add dependencies that are specific to a <code><em:targetApplication></code>. See {{ interwiki("wikimo", "Extension_Manager:Extension_Dependencies", "wikimo:Extension Manager:Extension Dependencies") }} for more details.</li>
</ul>
<p>This property was added for Firefox/Thunderbird 2. Previous versions of these applications will ignore the restrictions and install the add-on regardless of the requirements.</p>
<h2 id="Obsolete_Property_Reference" name="Obsolete_Property_Reference">Obsolete Property Reference</h2>
<p>These properties were required in older versions of the Addon Manager, but have been replaced with newer and better mechanisms.</p>
<h3 id="file" name="file">file</h3>
<p><strong>Firefox 1.0</strong> This property pointed to a chrome <code>.jar</code> file that contains chrome packages that require registration with the Chrome Registry.</p>
<p>The <code><em:file></code> property has a complex object value. The uri of the value is <code>urn:mozilla:extension:file:jarFile.jar</code> where <code>jarFile.jar</code> is the name of the jar file that contains the chrome package's files. This could also be the name of a directory that contains the chrome package's files, un-jarred (e.g. <code>urn:mozilla:extension:file:directory</code>). In either case, the referenced chrome package file(s) must be placed in the <code>chrome</code> subdirectory of the XPI's top level.</p>
<p>This object has a <code>package</code> property (with a path within the jar file or directory that leads to the location where the <code>contents.rdf</code> file responsible for registering that package is located), a <code>locale</code> property (ditto, but to register the locale) and a <code>skin</code> property (ditto, but to register the theme material).</p>
<p>In extensions for Firefox 1.5, this property is no longer necessary: the <code><a href="/en-US/docs/Chrome_Registration" title="Chrome_Registration">chrome.manifest</a></code> at the top level of the XPI is used to locate chrome to register. If there is no chrome.manifest, this property is still read by the Addon Manager and a chrome.manifest is generated from old-style contents.rdf.</p>
<p><strong>Examples</strong></p>
<pre class="eval"><em:file>
<Description about="urn:mozilla:extension:file:myext.jar">
<em:package>content/myext/</em:package>
<em:locale>locale/en-US/myext/</em:locale>
<em:skin>skin/classic/myext/<em:skin>
</Description>
</em:file>
</pre>
<p>An Install Manifest may specify multiple <code>file</code> properties, one for each jar file or subdirectory that contains chrome to register.</p>
<h3 id="hidden" name="hidden">hidden</h3>
<p><strong>Firefox 1.0</strong><strong> - 3.5</strong> A boolean value that when <code>true</code> makes the add-on not show up in the add-ons list, provided the add-on is installed in a {{ Anch("restricted access area") }} (so it does not work for add-ons installed in the profile). This is for bundling integration hooks to larger applications where having an entry in the Extensions list does not make sense.</p>
<div class="note">
<strong>Note:</strong> This property is no longer supported under Gecko 1.9.2 (Firefox 3.6) or later, to prevent extensions from being installed in such a way that the user might not be able to tell they're installed.</div>
<p><strong>Examples</strong></p>
<pre class="eval"><em:hidden>true</em:hidden></pre>
<h2 id="Glossary" name="Glossary">Glossary</h2>
<h2 id="restricted_access_area" name="restricted_access_area">restricted access area</h2>
<p>A <em>restricted access area</em> is an install location that could be restricted on a restricted-access account, regardless of whether or not the location is restricted with the current user privileges (see {{ Source("toolkit/mozapps/extensions/public/nsIExtensionManager.idl#80", "nsIInstallLocation::restricted") }}). Currently, the <code>($APPDIR)/extensions</code> folder and the registry install location under <code>HKEY_LOCAL_MACHINE</code> (see <a href="/en-US/docs/Adding_Extensions_using_the_Windows_Registry" title="Adding_Extensions_using_the_Windows_Registry">Adding Extensions using the Windows Registry</a> for details) are restricted.</p>
<p>The <code>($PROFILE)/extensions</code> and <code>HKEY_CURRENT_USER</code> install locations, on the other hand, are not restricted.</p>
|