title: Write to HKEY_LOCAL_MACHINE on Windows 7 without Administrator privilleges
body: <p><em>First of all, I realize this is a messy situation, but it's not of my design, and I'm just trying to help, and for that I need your help.</em></p>
  
  <ol>
  <li>App A is getting installed automatically via SMS installer under the Administrator account, not the PC owner's User account.  App A has a registry key defined in <code>HKEY_LOCAL_MACHINE</code> hive.</li>
  <li>After App A is installed, we want to edit the above mentioned registry key, to assign the User's <code>C:\Users\USER_ID\Documents\</code> folder (I'm told we don't don't know who the user is and don't have access to USER_ID during step 1).</li>
  <li>I know all about UAC, Application Manifest, and <code>requestedExecutionLevel</code>.  However, I'm told we can't expect that all users will be in the Administrators group on their machine.</li>
  <li>Solution must be backwards compatible with Windows XP as well.</li>
  </ol>
  
  <p><strong>I'm searching for options to get `C:\Users\USER_ID\Documents\' into the 'HKEY_LOCAL_MACHINE' hive under the above listed conditions.</strong></p>
  
  <p>I found this thread that might be related to a similar situation, but I don't fully understand it yet (so I will give credit to anyone that explain it better):</p>
  
  <ul>
  <li><a href="http://www.petri.co.il/forums/showthread.php?t=52354" rel="nofollow noreferrer">Find out (read) logged in user in a cmd started as a different user</a></li>
  </ul>
  
  <p>I also read something that rules out ClickOnce:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/5021021/clickonce-hkey-local-machine">Clickonce + HKEY_LOCAL_MACHINE</a></li>
  </ul>