问题
For some reason I cannot get this to work. I'm following the exact procedure described here http://developer.chrome.com/extensions/external_extensions.html#registry
And I still cannot get the extension listed. If I install it manually, using "Add Unpacked Extension" it works just fine.
Any help would be greatly appreciated
回答1:
One of many writeups on this subject:
Google on Friday announced that it is changing its stance for silently installing extensions in its browser. As of Chrome 25, external extension deployment options on Windows will be disabled by default and all extensions previously installed using them will be automatically disabled.
You're much better off submitting your extension to the Chrome Web Store. If you really want to install off-store, consider inline installation.
回答2:
I have been struggling with installing an addon via the registry as well. I was successful with installing an addon without adding reg keys. And using the preferences file.
I extracted my extension to Local\Google\Chrome\User Data\Default\Extensions\${ADDONID}\${VERSION}
I then added my extension directly to the Preferences
file in Local\Google\Chrome\User Data\Default
under the section extensions
settings
${ADDONID}
<-- add your extension. Compare the Preferences file to an instance you have already installed your addon. And copy that to the Preferences file along with the extension directory on a fresh install. And it should work.
This thread gave me some direction: https://superuser.com/questions/462804/how-to-copy-an-extension-from-one-chrome-installation-to-another
回答3:
It can be easily done through adding registry key for policy
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist
under that create String Value : 1 : ";file:///.xml"
Create a xml file & update the xml file with following data
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='<<YOUR_EXTENSION_ID>>'>
<updatecheck codebase='<<CRX_FILE_LOCATION>>.crx' version='4.0'/>
</app>
</gupdate>
Thats all...... Restart Chrome
来源:https://stackoverflow.com/questions/16056498/silent-install-of-chrome-extension-using-registry