使用注册表项的Google Chrome扩展安装? [英] Google Chrome Extension Installation using Registry Entries?

查看:979
本文介绍了使用注册表项的Google Chrome扩展安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我自己的扩展名,我想在没有用户交互的情况下进行安装。我将它打包到一个.crx文件中,并在注册表中输入这些值:

I have my own extension which I want to install without user interaction. I packed it into a .crx file and entered these values in the registry:

HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\Extensions\[ID]
"version"="1.0"
"path"="[crx Path]"

我试过当前用户和本地计算机都没有成功。

I tried both current user and local machine without success.

这在以前工作。我的扩展可以通过使用开发人员模式并将crx文件拖放到扩展名中进行安装。但是我想在没有用户交互的情况下安装。

This was working before. My extension can be installed by using developer mode and dragging and dropping the crx file into chrome extensions. But I want to install without user interaction.

不允许注册表安装吗?

推荐答案

即使您创建了注册表项,Chrome也不会使用本地crx文件进行安装。
您需要提供:update_url,字符串值设置为 https://clients2.google .com / service / update2 / crx

even though you create a registry entry, Chrome will not use the local crx file for installation. you need to supply: update_url with string value set to "https://clients2.google.com/service/update2/crx".

在Chrome推出后,Google将从网上商店获取扩展并显示允许用户使用的通知安装扩展名。

Upon chrome launch, Google will fetch the extension from web-store and show notification that'd let user install the extension.

在过去的日子里,您可以使用附加分机。那些日子已经一去不回。
现在您需要在webstore中发布扩展,并指向update_url来存储。

Back in old days you'd side-load extensions. Those days are long gone. Now you need to publish extension in webstore, and point update_url to store.

有一些例外(特别针对具有组策略设置的企业用户)在评论。

There are some exceptions (specifically for enterprise users with group policy settings) as mentioned in comments.

这篇关于使用注册表项的Google Chrome扩展安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆