Archive: Back-up register folder


Back-up register folder
How can I backup a entire Register map included the Submaps?

HKCU\Software\BioDuo\TEST\Junk
The folder "test" including Junk should be copied to
HLKM\Software\

How should I do this?


Use the attached file.

Usage:


!include registry.nsh

!insertmacro COPY_REGISTRY_KEY
Function foo
!insertmacro CALL_COPY_REGISTRY_KEY HKCU Software\BioDuo\TEST HKCU Software\TEST
FunctionEnd


For an uninstaller:

!include registry.nsh

!insertmacro UN.COPY_REGISTRY_KEY
Function un.foo
!insertmacro CALL_UN.COPY_REGISTRY_KEY HKCU Software\BioDuo\TEST HKCU Software\TEST
FunctionEnd


This has been tested on Windows 2000 && Windows XP.

Hmm, weird
It keeps on saying "Registery key HKCU\Software\BioDuo couldn't be found".
I tryed several other reg keys, but each time it cames up with the same error.


I will verify- it has been a while since I used this script.


Sorry, I had messed up while doing a search & replace of register names.
Use the attached script. That should work.
I will also clean it up and contribute to the Wiki.


Thanks a lot, it's finally working!