Copy Registry Key: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Copy Registry Key) |
m (Reverted edits by 177.18.208.107 to last version by 217.132.87.13) |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 2: | Line 2: | ||
== Description == | == Description == | ||
Use this function to copy a registry key along with all its | Use this function to copy a registry key along with all its values and subkeys to another location in the registry. | ||
== Usage == | == Usage == | ||
Line 43: | Line 43: | ||
== The Function == | == The Function == | ||
<attach>CopyRegistryKey.zip</attach> | <attach>CopyRegistryKey.zip</attach> | ||
[[Category:INI, CSV & Registry Functions]] |
Latest revision as of 17:11, 29 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.
Usage
Normal:
${COPY_REGISTRY_KEY} SOURCEROOTKEY SOURCESUBKEY TARGETROOTKEY TARGETSUBKEY
Uninstaller:
${UN.COPY_REGISTRY_KEY} SOURCEROOTKEY SOURCESUBKEY TARGETROOTKEY TARGETSUBKEY
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)