Why is this not working? I am trying to create a registry key in the [HKEY_LOCAL_MACHINE \ SOFTWARE \ MyService] section, but nothing was created.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Microsoft.Win32; namespace RegistryKey { class Program { static void Main(string[] args) { const string SUB_KEY_NAME = @"SOFTWARE\MyService";
Update: Nothing. I am an idiot. I used the remote registry editor to check the registry, believing that it will display the same as regedit. This is not true! I see the way using regedit.
source share