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



我可以在chrome中使用扩展加载NPAPI插件,但我的要求是在没有chrome扩展的情况下加载plugin.dll

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

  1. 复制了我的插件.dll并将其粘贴到mozilla的C:Program Files (x86)Mozilla Firefoxplugins
  2. 打开chrome浏览器并键入chrome://plugins,现在我可以看到我的插件.dll加载到chrome并能够运行test.html

这是在chrome浏览器中加载npapi插件的标准方式吗?如果没有,请建议如何做到这一点。

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

来自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"

相关内容

最新更新