title: Wix Installer: Write to HKLM/HKCR in per-user installation without elevated rights
body: <p>I created a "perMachine" installer with the wix toolset. The installer has to be started with admin rights, because it writes multiple registry keys to HKLM and HKCR.</p>
  
  <p>I'd like to change the installer to a "perUser" installation. Is it possible to do this and still write to HKLM and HKCR? The registry entries have to be there to register a shell icon overlay handler...</p>
  
  <p>Greets</p>
  
  <p><strong>EDIT:</strong> 
  There does not seem to be a way to write to HKLM as non-admin user.
  But is there a way to get wix installer to promt for admin pw? If so, I could live with the following solution:</p>
  
  <ul>
  <li>user knows admin pw (or admin provides pw): the icon overlay component is installed</li>
  <li>user does not provide admin pw: the icon overlay component is skipped.</li>
  </ul>
  
  <p>So my questions are:
  1. How to promt the user for the admin pw?
  2. How to skip/install a component based on the users action?</p>
  
  <p><strong>EDIT2:</strong> 
  I have tried multiple combinations of:</p>
  
  <p>InstallPrivileges="elevated"
  InstallScope="perUser"</p>
  
  <p>Property "ALLUSERS" set to empty string</p>
  
  <p>Property "MSIUSEREALADMINDETECTION" set to 1</p>
  
  <p>Property "MSIINSTALLPERUSER" set to 1</p>
  
  <p>Condition for said component: "Privileged / AdminUser"</p>
  
  <p>Nothing has worked so far. It all comes down to the Condition not beeing read correctly. I have tried on several PCs with an admin user. In order to get the product to install with ALL features, I have to start the installer explicitly as administrator over the context menu. Otherwise the icon overlay handler won't get installed.</p>