title: How to add/modify registry keys with C#?
body: <p>I want to add/edit registry keys through the C# app. </p>
  
  <p>I tried this, but it doesn't add the key:</p>
  
  <pre><code>    Microsoft.Win32.RegistryKey key;
              key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Serialize");
              key.SetValue("Startupdelayinmsec", "dword:00000000");
              key.Close();
  
          }
  </code></pre>
  
  <p>the code should add this key:</p>
  
  <p>[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize]
  "Startupdelayinmsec"=dword:00000000</p>
  
  <p>I'm not sure, but possibly it's because it's 64 system while I use Microsoft.Win32.RegistryKey. </p>
  
  <p>Thanks in advance for the help! </p>