Skip to content
⌘ NSIS Forum Archive

Install plugin

12 posts

Gluck#

Install plugin

I have downloaded NSIS portable from PortableApps.
In Plugins folder exist a Registry.dll 29 KB (both in x86 Ansi and x86 Unicode).

I obtain:

Function: "BackupLocalKeys"
Plugin not found, cannot call ${registry:😁eleteKey}

So I have downloaded again Registry 13 KB and substitute the originals.
The results is the same.

WHY?
Anders#
You need to put the plug-in .dll file(s) in the correct plug-in folder(s). The folder layout changed between NSIS 2 and 3.

NSIS 2 uses ${NSISDIR}\Plugins and NSIS 3 uses ${NSISDIR}\Plugins\x86-ansi\ and ${NSISDIR}\Plugins\x86-unicode\. Not all plug-ins have a Unicode version.
Gluck#
I'm afraid...

I've downloaded again NSIS portable from PortableApps.
I have, by default, in both x86-ansi and x86-Unicode a file called registry.dll.
But the compiler continue: "Plugin not found, cannot call ${registry::RestoreKey}"

How can I check if the plugins has been loaded? (In the main screen is not signed).

Thanks.
Gluck#
(Read the message above).

I have made another test...
I've downloaded NSIS 3.03 (regular) with installer, and installed it
I've downloaded from:



The last plugin 4.1, installed (it says contain only the Ansi version, not unicode).
The installation finish correctly, but the error remains...


I would advise of a mistake in the plugin installer. It says "PROGRAM COMPLITE"
Anders#
Are you !include'ing the .nsh from the .zip? It looks like this .dll plug-in supports both Unicode and ANSI in the same file so you can copy it to both plug-in directories in NSIS 3.
Gluck#
I have unpacked the .zip.
Then DESKTOP/INSTALL at the window only the Ansi version was proposed (Unicode was empty).

Stop.

I've missed something?
Gluck#
This is the code:

Section "Main"
${registry::RestoreKey} "$EXEDIR\RegInfo.reg" $R0
Sleep 200
End section

And only this.
I've found in a tutorial this command copy the key from the file .reg to the registry.
The program stop in $... advising missing plugin.
Anders#
Why can't you answer my question?

${registry::RestoreKey} is a define and it has to come from somewhere and that somewhere is the .nsh file that you need to include!
Gluck#
"Why can't you answer my question?".

Because I'm a newbie* and I don't understand what you mean.
Moreover, I'm not english or american, and my language is too poor!

Now I try to answer:

I have ONLY This code, .nsh files

The tutorial don't talk about a .nsh file...

* I'm a newbie in NSIS. I know ThinApp, TurboStudio, Evalaze, Cameyo, but I don't like sandboxes.
I know JauntePE. YAP, GAP, X-Launcher and a little of PortableApps (but I don't like his sintax).
Gluck#
THANKS!!!

Now work fine...

I thinked "!Include registry.nsh" was refering ONLY when I have an external file (a my coded file) to call.