OpenSubKey not working for Registry value I need
<p>I have SQL Server installed.</p>

<p>In the registry, the key <strong>MSSQLServer</strong> at *HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft* looks like this:
<img src="http://i.stack.imgur.com/Ena08.jpg" alt="enter image description here"></p>

<p>All of the following lines of code return values from the registry:</p>

<pre><code>    var mainKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE").OpenSubKey("Microsoft").OpenSubKey("MSSQLServer");
    var subKey1 = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE").OpenSubKey("Microsoft").OpenSubKey("MSSQLServer").OpenSubKey("Client");
    var subKey2 = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE").OpenSubKey("Microsoft").OpenSubKey("MSSQLServer").OpenSubKey("MSSQLServer").OpenSubKey("CurrentVersion");
</code></pre>

<p>However, this one does not:</p>

<pre><code>var subKey3 = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE").OpenSubKey("Microsoft").OpenSubKey("MSSQLServer").OpenSubKey("Setup");
</code></pre>

<p>"Setup" looks to be the same type of value as the other keys.  Any thoughts why this command returns null?</p>
