OLD | NEW |
---|---|
1 <div id="pageData-name" class="pageData">Other Deployment Options</div> | 1 <div id="pageData-name" class="pageData">Other Deployment Options</div> |
2 <div id="pageData-showTOC" class="pageData">true</div> | 2 <div id="pageData-showTOC" class="pageData">true</div> |
3 | 3 |
4 <p> | 4 <p> |
5 Usually, users install their own extensions. | 5 Usually, users install their own extensions. |
6 But sometimes you might want an extension | 6 But sometimes you might want an extension |
7 to be installed automatically. | 7 to be installed automatically. |
8 Here are two typical cases: | 8 Here are two typical cases: |
9 </p> | 9 </p> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 | 85 |
86 </p> | 86 </p> |
87 | 87 |
88 <ol> | 88 <ol> |
89 <li>If you are installing from a file, make the <code>.crx</code> extension | 89 <li>If you are installing from a file, make the <code>.crx</code> extension |
90 file available to the machine you want to install the extension on. | 90 file available to the machine you want to install the extension on. |
91 (Copy it to a local directory or to a network share for example, | 91 (Copy it to a local directory or to a network share for example, |
92 <code>\\server\share\extension.crx</code> | 92 <code>\\server\share\extension.crx</code> |
93 or <code>/home/share/extension.crx</code>.) | 93 or <code>/home/share/extension.crx</code>.) |
94 </li> | 94 </li> |
95 <li>Locate the <code>external_extensions.json</code> file | 95 <li>Locate the <code>external_extensions.json</code> file. |
96 under the Google Chrome installation directory. | |
97 If the file doesn't exist, create it. | 96 If the file doesn't exist, create it. |
98 The location depends on the operating system. | 97 The location depends on the operating system. |
99 <dl> | 98 <dl> |
100 <dt> Windows: </dt> | 99 <dt> Windows: </dt> |
101 <dd> <code><em>chrome_root</em>\Application\<em>chrome_version</em>\Extensio ns\</code> | 100 <dd> <code><em>chrome_root</em>\Application\<em>chrome_version</em>\Extensio ns\</code> |
102 <br /> | 101 <br /> |
103 Example: <code>c:\Users\Me\AppData\Local\Google\Chrome\Application\6.0.422.0 \Extensions\</code> | 102 Example: <code>c:\Users\Me\AppData\Local\Google\Chrome\Application\6.0.422.0 \Extensions\</code> |
104 </dd> | 103 </dd> |
105 <dt> Mac OS X: </dt> | 104 <dt> Mac OS X: </dt> |
106 <dd> <code>/Applications/Google Chrome.app/Contents/Extensions/</code> </dd> | 105 <dd> <code>/Library/Application Support/Google/Chrome/External Extensions/</ code> </dd> |
106 <p class="note"><b>Note:</b> The external extensions file will only be read if every directory in the path is owned by the user <code>root</code>, the group <code>admin</code>, and is not world readable. The path must also be free of s ymbolic links. These restrictions prevent an unprivileged user from causing ext ensions to be installed for all users. See <a href="#troubleshooting">troublesh ooting</a> for details.</p> | |
kathyw
2011/09/29 20:31:20
file will only be read if
->
file is valid only if
kathyw
2011/09/29 20:31:20
the group -> has the group
Sam Kerner (Chrome)
2011/09/30 15:22:04
I went with "read" instead of "valid".
Sam Kerner (Chrome)
2011/09/30 15:22:04
Done.
| |
107 <p class="note"> | |
108 <b>Note:</b> The above path was added in Chrome 16. Prior versions used a d ifferent path, which is now deprecated: | |
109 <code>/Applications/Google Chrome.app/Contents/Extensions/</code> .</p> | |
107 <dt> Linux: </dt> | 110 <dt> Linux: </dt> |
108 <dd> <code>/opt/google/chrome/extensions/</code> <br> | 111 <dd> <code>/opt/google/chrome/extensions/</code> <br> |
109 <b>Note:</b> Use <code>chmod</code> if necessary | 112 <b>Note:</b> Use <code>chmod</code> if necessary |
110 to make sure that <code>extensions/external_extensions.json</code> | 113 to make sure that <code>extensions/external_extensions.json</code> |
111 is world-readable. | 114 is world-readable. |
112 </dd> | 115 </dd> |
113 </dl> | 116 </dl> |
114 </li> | 117 </li> |
115 <li> Add an entry to <code>external_extensions.json</code> | 118 <li> Add an entry to <code>external_extensions.json</code> |
116 for your extension's ID. If you are installing from a file, specify the | 119 for your extension's ID. If you are installing from a file, specify the |
(...skipping 26 matching lines...) Expand all Loading... | |
143 "external_update_url": "http://myhost.com/mytestextension/updates.xml" | 146 "external_update_url": "http://myhost.com/mytestextension/updates.xml" |
144 } | 147 } |
145 }</pre> | 148 }</pre> |
146 </li> | 149 </li> |
147 | 150 |
148 <li>Save the JSON file. </li> | 151 <li>Save the JSON file. </li> |
149 <li>Launch Google Chrome and go to <b>chrome://extensions</b>; | 152 <li>Launch Google Chrome and go to <b>chrome://extensions</b>; |
150 you should see the extension listed. </li> | 153 you should see the extension listed. </li> |
151 </ol> | 154 </ol> |
152 | 155 |
156 <h3 id="troubleshooting">Troubleshooting Mac OS permissions problems</h3> | |
157 | |
158 On Mac OS, if you do not see the external extension installed when Chrome is lau nched, there may be a permissions problem with the external extensions prefs fil e. To see if this is the problem, follow these steps: | |
kathyw
2011/09/29 20:31:20
prefs -> preferences
Sam Kerner (Chrome)
2011/09/30 15:22:04
Done.
| |
159 | |
160 <ol> | |
161 <li> Launch the console program, under /Applications/Utilities/Console. </li> | |
kathyw
2011/09/29 20:31:20
console program, under
->
Console program. You can
Sam Kerner (Chrome)
2011/09/30 15:22:04
Done.
| |
162 <li> Click <code>Console Messages</code> in the left pane. </li> | |
kathyw
2011/09/29 20:31:20
Insert a step above here that says something like:
Sam Kerner (Chrome)
2011/09/30 15:22:04
Done. Good catch.
| |
163 <li> Search for the string <code>Can not read external extensions</code>. If there is a problem reading the external extensions file, you will find an error message. Look for another error message directly above it, which should explain the issue. For example, if you see the following error: | |
kathyw
2011/09/29 20:31:20
change <code> to <b>?
<code> is pretty ugly.
Sam Kerner (Chrome)
2011/09/30 15:22:04
Done.
| |
164 <code>Path /Library/Application Support/Google/Chrome is owned by the wrong group.</code>, you need to use <code>chgrp</code> or the Finder's Get Info dial og to make the file owned by the Administrator group.</li> | |
kathyw
2011/09/29 20:31:20
Use quotation marks (double quotes) instead of <co
kathyw
2011/09/29 20:31:20
make the file owned by the
->
change the file's ow
Sam Kerner (Chrome)
2011/09/30 15:22:04
Done.
Sam Kerner (Chrome)
2011/09/30 15:22:04
Done.
| |
165 <li> After fixing the issue, relaunch Chrome to try reading the external prefe rences file again. </li> | |
kathyw
2011/09/29 20:31:20
Chrome to try
->
Chrome.</li>
<li> Test whether th
Sam Kerner (Chrome)
2011/09/30 15:22:04
Done.
| |
166 </ol> | |
167 | |
153 <h2 id="registry">Using the Windows registry</h2> | 168 <h2 id="registry">Using the Windows registry</h2> |
154 | 169 |
155 <ol> | 170 <ol> |
156 <li>Make the <code>.crx</code> extension file available | 171 <li>Make the <code>.crx</code> extension file available |
157 to the machine you want to install the extension on. | 172 to the machine you want to install the extension on. |
158 (Copy it to a local directory or to a network share — | 173 (Copy it to a local directory or to a network share — |
159 for example, <code>\\server\share\extension.crx</code>.) | 174 for example, <code>\\server\share\extension.crx</code>.) |
160 </li> | 175 </li> |
161 <li>Find or create the following key in the | 176 <li>Find or create the following key in the |
162 registry: | 177 registry: |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
264 | 279 |
265 <br> | 280 <br> |
266 | 281 |
267 <p><b>How do I get off the blacklist?</b> </p> | 282 <p><b>How do I get off the blacklist?</b> </p> |
268 <p>If the user uninstalls your extension, you should respect that | 283 <p>If the user uninstalls your extension, you should respect that |
269 decision. However, if you (the developer) accidentally uninstalled | 284 decision. However, if you (the developer) accidentally uninstalled |
270 your extension through the UI, | 285 your extension through the UI, |
271 you can remove the blacklist tag | 286 you can remove the blacklist tag |
272 by installing the extension normally | 287 by installing the extension normally |
273 through the UI, and then uninstalling it. </p> | 288 through the UI, and then uninstalling it. </p> |
OLD | NEW |