静默安装 Firefox 插件
我正在尝试通过 msi 安装程序静默安装 firefox xpi。我通过以下方法执行此操作:
将我的 xpi
解压到某个临时目录中,并将其所有内容复制到 %APPDATA%\Mozilla\Firefox\Profiles\xxxx.default\extensions \
我希望下次我的 Firefox 打开时该插件可用,但我无法获取它。有人可以告诉我静默安装 Firefox 插件是否还有更多工作要做吗?
卡皮尔
I am trying to install a firefox xpi silently through an msi installer. I am doing so by the following method:
Unzip my xpi
in some temp dir and copy all the contents of that to the %APPDATA%\Mozilla\Firefox\Profiles\xxxx.default\extensions\<uniqueid-for-my-addon>
I expected the addon to be available the next time my firefox opens, but I am not able to get it. Can someone tell me if there is more to be done for a silent install of firefox addons?
Kapil
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您想要通过 Windows 注册表添加插件。
You want to add your add-on via the windows registry.
关键是您放置在扩展文件夹中的文件夹的名称,它必须被称为扩展 ID(在 install.rdf 文件中定义)。
另请注意,这不会是完全静默安装,插件安装对话框将在下次使用该配置文件启动 Firefox 时警告用户已安装新扩展。
The key is the name of the folder you are placing inside the extensions folder, it has to be called as the extension id (which is defined inside the install.rdf file).
Also note that this will not be a completely silent install, the addon install dialog will warn the user the next time Firefox is started with that profile that a new extension has been installed.