title: How to allow non-admin user to write to registry key HKEY_LOCAL_MACHINE\SOFTWARE\SWname\Licenses
body: <p>I have a software deployed using Windows Installer.</p>
  
  <p>On Windows XP, When I use non-admin user to install the software package, it asks for administrator's right which is correct.
  Then I click run as administrator and wait for the installation finish.</p>
  
  <p>Then if I (non-admin user) want to write to registry key "HKEY_LOCAL_MACHINE\SOFTWARE\SWname\Licenses", the software throws an exception. The access is denied.</p>
  
  <p>I use follows in the source code :</p>
  
  <pre><code>RegistryKey rk= Registry.LocalMachine.CreateSubKey("SOFTWARE\\"+swName+"\\Licenses", RegistryKeyPermissionCheck.ReadWriteSubTree);
  </code></pre>
  
  <p>But still cannot access to the registry key if I am an non-admin user.</p>
  
  <p>How to allow non-admin user have write access to the registry key under my software ? Like adding a license ?</p>