The code does not take into account Windows User Account Control, so it may need to be run within a configuration with administrative rights turned on.
Here are some key features of "Export a registry key in C#":
Process:
· Create a process that we can use to “call” the Registry Editor
· Tell the operating system not to use ShelExecute
· Start the process, with the path to the Registry Editor (regedit.exe) and the aforementioned export command
· Wait until the process automatically closes
· Kill the resources
· Tell the end user
Requirements:
· Visual Studio 2010 or Visual C# Express 2010