I couldn't create a subkey under the following Path :
Registry.CurrentUser + @"\Software\";
RegistryKey Key = Registry.CurrentUser.OpenSubKey("SOFTWARE").CreateSubKey("MyKey");
Cannot write to the registry key.
It's because according to MSDN,
OpenSubKey retrieves a subkey as read-only. Instead, try to use