NSIS正在加载NPAPI插件
我有一个NPAPI插件 如何向NSIS安装程序注册dll?我尝试了这个,但编译器给出了错误: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
# 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