Archive: How to copy registry keys recursively


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?


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


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.


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.


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?


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


Another solution is this. It uses the System plugin to directly make API calls.