Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Back-up register folder (http://forums.winamp.com/showthread.php?t=231093)

BioDuo 15th November 2005 18:57

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 15th November 2005 20:00

1 Attachment(s)
Use the attached file.

Usage:
code:

!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:
code:

!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 17th November 2005 13:52

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 17th November 2005 13:57

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

iceman_k 17th November 2005 14:05

1 Attachment(s)
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.

BioDuo 17th November 2005 14:15

Thanks a lot, it's finally working!


All times are GMT. The time now is 17:56.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.