title: Accessing Registry on windows 7 C#
body: <p>I am attempting to make an updater program, that when updates it writes a build number into the windows 7 registry which the main program reads when checking for updates. I've gone through the UAC virtualization kb at microsoft's page, and have found nothing. My app.manifest has </p>
  
  <pre><code>&lt;requestedExecutionLevel  level="highestAvailable" uiAccess="false" /&gt;
  </code></pre>
  
  <p>and yet, when i look in HKEY_Local_Machine\Software the build entry is not there, i dont even see it in HKEY_USERS\_Classes\VirtualStore\Machine\Software either. </p>
  
  <p>the code i'm using to enter into registry is</p>
  
  <pre><code>            Registry.LocalMachine.CreateSubKey("SOFTWARE\\build");
          RegistryKey myKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\build", true);
  
          myKey.SetValue("build", "3", RegistryValueKind.String);
  </code></pre>
  
  <p>any ideas/suggestions?</p>