title: Reading a registry key in C#
body: <p>I have developed an application and installed it on a client computer. In my application I need to get its installation path. My application has a registry entry at: </p>
  
  <pre class="lang-none prettyprint-override"><code>HKEY_LOCAL_MACHINE\SOFTWARE\MyApplication\[AppPath]
  </code></pre>
  
  <p>How can I read <code>AppPath</code> using C#?</p>