title: OpenSubKey returns null in VB.NET
body: <p>I have a console program that read a registry key under HKCU:</p>
  
  <pre><code>OpenSubKey("Software\\Autodesk\\AutoCAD")
  </code></pre>
  
  <p>The program works very fine, but when I tried to use it as a <code>Custom Action</code> in an install project, it returned a <code>null</code> value.</p>
  
  <p>Here are some suggestions:</p>
  
  <ol>
  <li>Turning off the <a href="http://en.wikipedia.org/wiki/User_Account_Control" rel="nofollow">UAC</a> (user account control) will solve the problem.</li>
  <li>If I can run this console by double clicking it, it will work fine even if UAC is on.</li>
  </ol>