Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
NSIS正在加载NPAPI插件_Nsis - Fatal编程技术网

NSIS正在加载NPAPI插件

NSIS正在加载NPAPI插件,nsis,Nsis,我有一个NPAPI插件 如何向NSIS安装程序注册dll?我尝试了这个,但编译器给出了错误: # define the name of the installer outfile "simple installer.exe" RegDLL plugin.dll sectionEnd 错误是: 错误:命令RegDLL在节或函数外部无效 脚本“C:\Program Files\NSIS\test01.nsi”第4行出错--中止创建过程RegDLL用于导出DllRegisterServe

我有一个NPAPI插件

如何向NSIS安装程序注册dll?我尝试了这个,但编译器给出了错误:

 # define the name of the installer
 outfile "simple installer.exe"

 RegDLL plugin.dll

 sectionEnd
错误是:

错误:命令RegDLL在节或函数外部无效
脚本“C:\Program Files\NSIS\test01.nsi”第4行出错--中止创建过程

RegDLL用于导出DllRegisterServer函数的DLL。它通常由COM DLL使用

您可以通过以下方式向firefox注册插件:

…但是如果你的NPAPI插件实际上有一个DllRegisterServer导出,你可以使用RegDLL

!define pluginid "@example.com/myplugin"
Outfile "setup.exe"
InstallDir "$programfiles\myplugin"

Page Instfiles

Section
SetOutPath $InstDir
File "myplugin.dll"

WriteRegStr HKLM "SOFTWARE\MozillaPlugins\${pluginid}" "Path" "$InstDir\myplugin.dll"
WriteRegStr HKLM "SOFTWARE\MozillaPlugins\${pluginid}" "ProductName" "my plugin"
WriteRegStr HKLM "SOFTWARE\MozillaPlugins\${pluginid}" "Description" "my useless plugin"
;Add Vendor,Version etc...
SectionEnd