title: Why does per-user installation of an MSI built with WixUI_Advanced require elevated privileges?
body: <p>I'm working with WiX 3.8 and I want to give the user the option of installing a package per-user or per-machine. Per <a href="http://wixtoolset.org/documentation/manual/v3/wixui/dialog_reference/wixui_advanced.html" rel="nofollow">the docs</a>, I have the following test <code>.wxs</code> file:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='windows-1252'?&gt;
  &lt;Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'&gt;
  
      &lt;Product Name='Test' Id='D96B1E41-D392-4841-A526-D9BD50824163' UpgradeCode='FBCC53EC-6365-4D63-A584-F39F9984588B'
          Language='1033' Codepage='1252' Version='1.0' Manufacturer='Test Manufacterer'&gt;
  
          &lt;Package Id='*' Keywords='Installer'
              Description="Test Installer" InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' /&gt;
  
          &lt;Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" /&gt;
          &lt;Property Id='DiskPrompt' Value="Test Installation [1]" /&gt;
  
          &lt;Property Id="ApplicationFolderName" Value="Test" /&gt;
          &lt;Property Id="WixAppFolder" Value="WixPerUserFolder" /&gt;
  
          &lt;Directory Id='TARGETDIR' Name='SourceDir'&gt;
              &lt;Directory Id='ProgramFilesFolder' Name='PFiles'&gt;
                  &lt;Directory Id='APPLICATIONFOLDER' Name='Test'&gt;
                      &lt;Component Id='Test' Guid='3A810A32-0514-4616-993C-B5BBACB74FC6'&gt;
                          &lt;File Id='TestFile' Name='test.txt' DiskId='1' Source='test.txt' KeyPath='yes' /&gt;
                      &lt;/Component&gt;
                  &lt;/Directory&gt;
              &lt;/Directory&gt;
          &lt;/Directory&gt;
  
          &lt;Feature Id='Complete' Title='Main Program' Description='The main program.'
              Display='collapse' Level='1' ConfigurableDirectory='APPLICATIONFOLDER'&gt;
              &lt;ComponentRef Id='Test' /&gt;
          &lt;/Feature&gt;
  
          &lt;UIRef Id="WixUI_Advanced" /&gt;
      &lt;/Product&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>I'm building the MSI with the following command line:</p>
  
  <pre><code>candle test.wxs &amp;&amp; light -ext WixUIExtension test.wixobj
  </code></pre>
  
  <p>This works well and succeeds without any errors or warnings, but when I run the MSI as a restricted user and select the "Install just for you" option, I'm still prompted for the credentials of a superuser when I click Install. If I provide the proper credentials, the program is installed in the user's AppData folder as expected. Why am I being prompted for privilege elevation? Is there any way to change this behavior?</p>