如何在不使用manifest.json的情况下在chrome中安装NPAPI插件

时间:2013-08-15 11:23:37

标签: google-chrome-extension npapi

我可以使用chrome中的扩展程序加载NPAPI插件,但我的要求是在chrome中加载 plugin.dll 而不扩展。

我已尝试以下方法在chrome中加载我的plugin.dll:

  1. 复制了我的 plugin.dll 并将其粘贴到mozilla的C:\Program Files (x86)\Mozilla Firefox\plugins
  2. 打开Chrome浏览器并输入chrome://plugins现在我可以看到我的 plugin.dll 加载到chrome并且能够运行test.html
  3. 这是在Chrome浏览器中加载npapi插件的标准方法吗?如果没有,那么请建议如何做到这一点。

1 个答案:

答案 0 :(得分:4)

安装不属于Windows扩展程序的NPAPI插件的正确方法是在Windows注册表中添加正确的密钥。

来自the mozilla wiki

HKLM/Software/MozillaPlugins/plugin-identifier

    Descripton: REG_SZ "Description of the Plugin"
    Path: REG_SZ "C:\..Path to the plugin.dll"
    ProductName: REG_SZ "The Plugin Name"
    Vendor: REG_SZ "The Plugin Author/Vendor"
    Version: REG_SZ "0.5.whatever plugin version string"
相关问题