通过Windows注册表安装Chrome扩展 [英] Install Chrome extension through windows registry
问题描述
我想通过Windows注册表安装Chrome扩展程序,如文档中所述。
我在
$ b
HKEY_LOCAL_MACHINE / SOFTWARE中添加了新注册表项/ Wow6432node / Google / Chrome / Extensions / bbfbifchphidhgjegibafmlnbfpkmlik
在此我添加了一个新的字符串键update_url:https://clients2.google.com/service/update2/crx
和version:1.1.2
,但重新启动Chrome后,Chrome扩展程序页面中不会添加新的扩展程序。我使用Windows 7,64位。
A 在Google群组上发布了类似的问题,但尚未发布任何解决方案。
我缺少什么?
Chrome的有关部署选项的文档非常具有误导性。我的问题是我显式地将 update_url
注册表属性设置为文档中指定的JSON字符串。
{
update_url:https://clients2.google.com/service/update2/crx
}
它应该是 https://clients2.google.com/service/update2/crx
,其中
完全重新启动Chrome后(如果允许Chrome在后台运行,请使用托盘图标退出Chrome),系统会弹出一个窗口,询问是否应该启用新安装的扩展程序。
此弹出窗口只显示一次。如果它被忽略,它不会在下次显示。此行为可以通过一次手动添加和删除应用程序来重置,这似乎会重置Chrome存储的某些内部状态。
I want to install a Chrome extension through the Windows Registry, as described in the documentation.
I have added the new registry key in
HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432node/Google/Chrome/Extensions/bbfbifchphidhgjegibafmlnbfpkmlik
Under this I added a new string key "update_url":"https://clients2.google.com/service/update2/crx"
and "version":"1.1.2"
, but on restarting Chrome, the new extension is not added in the Chrome extensions page. I am using Windows 7, 64-bit.
A post on Google groups lists a similar problem, but no resolution has been posted yet.
What am I missing?
Chrome's documentation on deployment options is very misleading. My problem was I set the update_url
registry property explicitly to the JSON string specified in the documentation.
{
"update_url": "https://clients2.google.com/service/update2/crx"
}
It should just be https://clients2.google.com/service/update2/crx
, which makes a lot more sense.
Upon restarting Chrome entirely (if Chrome is allowed to run in the background, exit Chrome using the tray icon) a popup shows up asking whether the newly installed extension should be enabled or not.
This popup is only shown once. If it is ignored it does not show up next time. This behavior can be reset by adding and removing the application manually through the web store once, which seemingly resets some internal state stored by Chrome.
这篇关于通过Windows注册表安装Chrome扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!