我尝试注册一个自己的NPAPI插件,但我没有找到有关这方面的信息。
我知道Chrome上的NPAPI是不推荐的(稍后我会写一个PPAPI插件),但是Chrome说我必须使用manifest.json (参见https://developer.chrome.com/extensions/npapi)。但我是怎么注册的?
在我试过之后:
在批处理文件(register.bat):上
 regsvr32.exe /s "C:\Users\Bizzi\Desktop\WoRPG Plugin\npworpg\Release\npworpg.dll"
 pause直接在书记官处:
HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\
    [worpg.de/WoRPG]
        Description  REG_SZ   World of RPG Browser Plugin
        Path         REG_SZ   C:\Users\Bizzi\Desktop\WoRPG Plugin\npworpg\Release\npworpg.dll
        ProductName  REG_SZ   World of RPG Plug-In
        Vendor       REG_SZ   World of RPG
        Version      REG_SZ   1.0.0
        [MimeTypes]
            [application/x-worpg-launcher]
                Description  REG_SZ   World of RPG发布于 2014-05-06 20:03:38
解决办法很简单!
确保浏览器具有多大的可靠性。如果浏览器是基于64位的浏览器,请确保设置了注册表项:
铬(32位):KEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\Extensions
铬(64位):KEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Google\Chrome\Extensions
火狐(32位):KEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins
火狐(64位):KEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins
下面是一个.reg脚本:
Windows Registry Editor Version 5.00
; MOZILLA 32bit
[HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@worpg.de/npworpg,version=1.0.0]
"Description"="World of RPG Browser Plugin"
"Path"="C:\\Program Files (x86)\\World of RPG\\plugins\\npworpg.dll"
"ProductName"="npworpg"
"Vendor"="World of RPG"
"Version"="1.0.0"
[HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@worpg.de/WoRPG,version=1.0.0\MimeTypes]
[HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@worpg.de/WoRPG,version=1.0.0\MimeTypes\application/x-worpg-launcher]
"Description"="World of RPG"
; MOZILLA 64bit
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@worpg.de/npworpg,version=1.0.0]
"Description"="World of RPG Browser Plugin"
"Path"="C:\\Program Files (x86)\\World of RPG\\plugins\\npworpg.dll"
"ProductName"="npworpg"
"Vendor"="World of RPG"
"Version"="1.0.0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@worpg.de/WoRPG,version=1.0.0\MimeTypes]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@worpg.de/WoRPG,version=1.0.0\MimeTypes\application/x-worpg-launcher]
"Description"="World of RPG"
; CHROME 32bit
[HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\Extensions\ckpknilfoflolaglllnonhhhnfhaidom]
"Path"="C:\\Program Files (x86)\\World of RPG\\plugins\\npworpg.dll"
"Version"="1.0.0"
; CHROME 64bit
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\ckpknilfoflolaglllnonhhhnfhaidom]
"Path"="C:\\Program Files (x86)\\World of RPG\\plugins\\npworpg.dll"
"Version"="1.0.0"发布于 2014-05-02 13:39:03
从事物的外观来看,你是相对接近的。但是,文档显示您的插件标识符格式不正确,应该以@开头。
很难百分之百确定这是否是唯一的问题,但这是我看到的问题。
KEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\
[@worpg.de/WoRPG]试试,看看会发生什么。
https://stackoverflow.com/questions/23416707
复制相似问题