title: RegistryKey.GetValue returns no value in Installer
body: <p>If have a class that is called as part of an MSI installer package as CustomAction.</p>
  
  <p>It tries to read values from the registry (try to find the local SQL-Server instances):</p>
  
  <pre><code>   RegistryKey sqlServer = Registry.LocalMachine.OpenSubKey( 
                           @"SOFTWARE\Microsoft\Microsoft SQL Server", false );
  
     string[] localInstances = (string[])sqlServer.GetValue( "InstalledInstances" );
  </code></pre>
  
  <p>As a stand-alone application this works fine, but it does not work if called from the installer (run as the same user). In the installer <code>GetValue</code> returns <code>null</code>.</p>
  
  <p>Any ideas?</p>
  
  <p>Edit:
  I ran the installer and the exe on the same machine as the same user.
  FrameWork is .Net 4 on a Windows 7 64bit machine</p>
  
  <p>Thanks in advance</p>
  
  <p>Mario</p>