title: Add key to registry if not exist
body: <p>I try to add a key to the registry if not exist.
  While I debug everything is fine. Code should work. But I can't find key in registry editor. Do you have any idea? </p>
  
  <pre><code>public void ConfigureWindowsRegistry()
  {
      var reg = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Office\\Outlook\\FormRegions\\tesssst", true);
      if (reg == null)
      {
          reg = Registry.LocalMachine.CreateSubKey("Software\\Microsoft\\Office\\Outlook\\FormRegions\\tesssst");
      }
  
      if (reg.GetValue("someKey") == null)
      {
              reg.SetValue("someKey", "someValue");
      }
  }
  </code></pre>