title: Registry Key not writing, no error messages C#
body: <p>When I press the &quot;Patch&quot; button which is referred to button1 it will run this code</p>
  <pre><code>                var registry = Registry.CurrentUser;
                  var key =
                      registry.OpenSubKey(
                          @&quot;SOFTWARE\Classes\CLSID&quot;, true);
  
                  //create a new key 
                  key.CreateSubKey(&quot;{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}&quot;);
                  registry.OpenSubKey(
                          @&quot;Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}&quot;);
                  key.CreateSubKey(&quot;InprocServer32&quot;);
                  registry.OpenSubKey(
                          @&quot;Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32&quot;);
                  key.SetValue(&quot;(Default)&quot;, &quot;&quot;);
                  key.Close();
  </code></pre>
  <p>There is no error, but also no new key in Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID.</p>
  <p>Any help would be greatly appreciated!</p>