Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSIS Registry Plugin not found

Tags:

registry

nsis

When compiling an NSIS script, whenever I invoke registry (or time) macros contained in the Registry.nsh and Time.nsh plugins, I get an error.

The command I run is something like:

${registry::Open} "[fullpath]" "[Options]" $var

And the error I get is:

Plugin not found, cannot call registry::_Open

Does anybody know what I'm missing?

Edit: Using NSIS 3.0b2

like image 831
hermeneutics Avatar asked Sep 11 '15 23:09

hermeneutics


People also ask

How do I install NSIS plugins?

NSIS plugin installationdll" files must be put into the "NSIS\Plugins[\platform]" subfolder and the ". nsh" file into the "NSIS\Include" subfolder. NSIS v2 only supports ANSI plug-ins and they are stored in "NSIS\Plugins". NSIS v3 supports multiple targets and plugins are stored in subfolders under "NSIS\Plugins\".

What is NSIS plugin?

From NSIS Wiki The NSISList plugin allows you to create, manage and manipulate several independent lists/maps in your NSIS installer.


1 Answers

You need to put the plugin .dll in the correct subdirectory. For NSIS v2.x this is in ...\NSIS\Plugins and for NSIS v3.x it is ...\NSIS\Plugins\x86-ansi for ANSI plugins and ...\NSIS\Plugins\x86-unicode for Unicode plugins.

You can also store plugins in other folders and use !addplugindir if you have multiple NSIS installations...

like image 112
Anders Avatar answered Sep 18 '22 12:09

Anders