Old 15th November 2005, 18:57   #1
BioDuo
Junior Member
 
Join Date: Jun 2005
Posts: 21
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?
BioDuo is offline   Reply With Quote
Old 15th November 2005, 20:00   #2
iceman_k
NSIS Dev
 
iceman_k's Avatar
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 455
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.
Attached Files
File Type: nsh registry.nsh (5.8 KB, 184 views)

Cheers,
Iceman_K

EclipseNSIS - An NSIS IDE for the Eclipse Platform | My contributions to the wiki
iceman_k is offline   Reply With Quote
Old 17th November 2005, 13:52   #3
BioDuo
Junior Member
 
Join Date: Jun 2005
Posts: 21
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.
BioDuo is offline   Reply With Quote
Old 17th November 2005, 13:57   #4
iceman_k
NSIS Dev
 
iceman_k's Avatar
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 455
I will verify- it has been a while since I used this script.

Cheers,
Iceman_K

EclipseNSIS - An NSIS IDE for the Eclipse Platform | My contributions to the wiki
iceman_k is offline   Reply With Quote
Old 17th November 2005, 14:05   #5
iceman_k
NSIS Dev
 
iceman_k's Avatar
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 455
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.
Attached Files
File Type: nsh registry.nsh (5.7 KB, 206 views)

Cheers,
Iceman_K

EclipseNSIS - An NSIS IDE for the Eclipse Platform | My contributions to the wiki
iceman_k is offline   Reply With Quote
Old 17th November 2005, 14:15   #6
BioDuo
Junior Member
 
Join Date: Jun 2005
Posts: 21
Thanks a lot, it's finally working!
BioDuo is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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