Skip to content
⌘ NSIS Forum Archive

Back-up register folder

6 posts

BioDuo#

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?
iceman_k#
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.
BioDuo#
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.
iceman_k#
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.