Old 16th April 2018, 12:40   #1
Gluck
Junior Member
 
Join Date: Apr 2018
Posts: 17
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?
Gluck is offline   Reply With Quote
Old 16th April 2018, 12:53   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,701
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.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 19th April 2018, 11:42   #3
Gluck
Junior Member
 
Join Date: Apr 2018
Posts: 17
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 is offline   Reply With Quote
Old 19th April 2018, 12:06   #4
Gluck
Junior Member
 
Join Date: Apr 2018
Posts: 17
(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:

http://nsis.sourceforge.net/Registry_plug-in

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"
Gluck is offline   Reply With Quote
Old 19th April 2018, 15:54   #5
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,701
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.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 19th April 2018, 16:41   #6
Gluck
Junior Member
 
Join Date: Apr 2018
Posts: 17
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 is offline   Reply With Quote
Old 19th April 2018, 17:02   #7
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,701
Quote:
Originally Posted by Anders View Post
Are you !include'ing the .nsh from the .zip?
??

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 19th April 2018, 17:17   #8
Gluck
Junior Member
 
Join Date: Apr 2018
Posts: 17
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.
Gluck is offline   Reply With Quote
Old 19th April 2018, 17:20   #9
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,701
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!

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 19th April 2018, 18:30   #10
Gluck
Junior Member
 
Join Date: Apr 2018
Posts: 17
"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 is offline   Reply With Quote
Old 19th April 2018, 22:03   #11
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,701
Quote:
!include "c:\path\to\registry.nsh"
add this to your .nsi

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old Yesterday, 06:50   #12
Gluck
Junior Member
 
Join Date: Apr 2018
Posts: 17
THANKS!!!

Now work fine...

I thinked "!Include registry.nsh" was refering ONLY when I have an external file (a my coded file) to call.
Gluck is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump