Copy Registry Key: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Undo revision 17255 by 194.196.80.221 (Talk)) |
(→Usage) |
||
Line 4: | Line 4: | ||
Use this function to copy a registry key along with all its values and subkeys to another location in the registry. | Use this function to copy a registry key along with all its values and subkeys to another location in the registry. | ||
ctrl | |||
== Examples == | == Examples == |
Revision as of 22:30, 27 October 2011
Author: Iceman_K (talk, contrib) |
Description
Use this function to copy a registry key along with all its values and subkeys to another location in the registry.
ctrl
Examples
Normal:
!include registry.nsh !insertmacro COPY_REGISTRY_KEY Section ${COPY_REGISTRY_KEY} HKLM SOFTWARE\NSIS HKLM SOFTWARE\BACKUP\NSIS SectionEnd
Uninstaller:
!include registry.nsh !insertmacro UN.COPY_REGISTRY_KEY Section uninstall ${UN.COPY_REGISTRY_KEY} HKLM SOFTWARE\NSIS HKLM SOFTWARE\BACKUP\NSIS SectionEnd
The Function
CopyRegistryKey.zip (1 KB)