1

我使用 Windows 7(64 位)并在Google Document中重复步骤。

这是我在注册表中添加的。

In HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\nbfjanngloflombfddlmkgnambnfhgjc
path="C:\Extension.crx"
version="2.1"

但是没有安装扩展。

在测试 .crx 文件分发之前,

我通过 UI(chrome://extensions) 多次安装和卸载了这个带有解压文件的扩展,用于开发和使用 register 测试设置策略。(但我现在删除了所有这些。)

它会导致任何问题吗?

但是当我在另一台干净的 PC(Windows XP 32 位)上测试同样的东西时,也没有任何改变。

我已经多次检查了谷歌文档中的一些常见错误,但我找不到任何错误。

- Not specifying the same id/version as the one listed in the .crx
- Key created in the wrong location in the registry
- Registry entry points to the wrong path to the .crx file (or path specified but no filename)
- Permissions problems on a network share

我应该检查安装外部扩展程序的其他常见错误吗?

4

2 回答 2

3

根据此页面 - https://developer.chrome.com/extensions/external_extensions - 不再可以使用注册表方法安装本地托管的 .crx 文件。事实上,唯一允许的扩展是来自 Google 扩展库的扩展。

请参阅以下来自 Google 政策页面的报价:

An extension that's installed automatically is known as an external extension. Google Chrome supports two ways of installing external extensions:

-Using a preferences JSON file (Mac OS X and Linux only)
-Using the Windows registry (Windows only)

Both ways support installing an extension hosted at an update_URL. In the Windows registry, the update_URL must point to the Chrome Web Store where the extension is hosted.
于 2014-05-26T16:46:34.317 回答
2
  1. 扩展 ID 不能随意选择。
    我已经.crx在 Chromium 18 (Linux) 和 Chrome 18 ( VirtualBox 中的 Windows 7 ) 中安装了您的文件,正确的扩展 ID 是:lhmigopickaaleaaelbppeabnbdgcdhe
  2. 版本号必须匹配。在manifest.json文件中,在扩展名中,我看到"version": "1.0". 因此,version注册表中的条目必须是1.0.
  3. 我无法使用文档中的步骤通过注册表安装扩展。我找到了两种通过注册表安装扩展的正确方法。创建一个.reg文件,然后粘贴下面的文本以安装扩展:

set_page_color_chrome-extension.reg(基于此文件md5: 10a1b95c249a2481bc88d3d1aead0e33)。

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\Extensions\lhmigopickaaleaaelbppeabnbdgcdhe]
"version"="1.0"
"path"="C:\\set_page_color.crx"

如果您遇到权限问题,或者您只想为当前用户安装扩展程序,请替换HKEY_LOCAL_MACHINE为。HKEY_CURRENT_USER

于 2012-04-09T09:13:02.217 回答