hermeneutics
hermeneutics

Reputation: 107

NSIS Registry Plugin not found

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

Upvotes: 6

Views: 4588

Answers (1)

Anders
Anders

Reputation: 101559

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...

Upvotes: 8

Related Questions