Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 7th February 2007, 10:34   #1
Thalion77
Junior Member
 
Join Date: Jun 2006
Posts: 16
Question How to copy registry keys recursively

I need a code sample which shows how to copy a registry key with all its sub entries to another position

e.g. HKLM/Software/Test copy to HKLM/Software/Test2

Has anyone a sample for me?
Thalion77 is offline   Reply With Quote
Old 7th February 2007, 10:42   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
http://nsis.sourceforge.net/Registry_plug-in

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 7th February 2007, 11:07   #3
Thalion77
Junior Member
 
Join Date: Jun 2006
Posts: 16
Where can I find in your amounts of files the spot how to copy the entries recursively. I only find a kind of object-oriented way of registry access with NSIS.
Thalion77 is offline   Reply With Quote
Old 7th February 2007, 11:36   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
I don't understand your question, the registry plugin is the best plugin that I know to manage registry within NSIS.

It has included documentation and examples explaining plugin's usage, if you decided it's useless for you, please ignore my suggestion.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 7th February 2007, 12:01   #5
Thalion77
Junior Member
 
Join Date: Jun 2006
Posts: 16
No, it's a good pattern for me. But if I want to copy a registry key with your code, does it copy its sub keys too?
Thalion77 is offline   Reply With Quote
Old 7th February 2007, 12:14   #6
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Actually it's not my code, plugin's author is Instructor, I just wanted to offer some help, if you have specific questions about this plugin, I think best is to post them on the corresponding thread so Instructor would know about.

http://forums.winamp.com/showthread....hreadid=223066

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 7th February 2007, 13:40   #7
iceman_k
NSIS Dev
 
iceman_k's Avatar
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 455
Another solution is this. It uses the System plugin to directly make API calls.

Cheers,
Iceman_K

EclipseNSIS - An NSIS IDE for the Eclipse Platform | My contributions to the wiki
iceman_k is offline   Reply With Quote
Reply
Go Back   Winamp 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