title: Is it possible to install the same application either per user or per machine?
body: <p>Non-admin user should have ability to install an application.<br>
  That's why I set InstallScope in the installation to "perUser" by default.<br>
  But sometimes Admin should have ability to install this application per machine and all user should have access to the same application.<br>
  Is it possible to install the same application either per user or per machine?<br>
  For example depending on some command line property?  </p>
  
  <p>I use following wxs to build my test msi package:
      
      
        </p>
  
  <pre><code>    &lt;Package Id="*" InstallScope="perUser"
                      InstallPrivileges="limited"
                      InstallerVersion="100"
                      Keywords="Installer"
                      Description="TestApp Installer"
                      Compressed="yes"/&gt;
  
      &lt;MediaTemplate EmbedCab="yes"/&gt;
  
      &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
        &lt;Directory Id="LocalAppDataFolder" Name="AppData"&gt;
            &lt;Directory Id="INSTALLDIR" Name="TestApp"&gt;
              &lt;Component Id="app.exe" Guid="AD5A8A90-7137-4F71-ABC5-A75D98CA0290"&gt;
                 &lt;File Id="app.exe" Source="..\server\app.exe" /&gt;
                 &lt;RemoveFolder Id="TestApp" On="uninstall" /&gt;
                 &lt;RegistryKey Root="HKCU" Key="Software\TestManufactorer\TestApp"&gt;
                    &lt;RegistryValue Name="app.exe" Value="1" KeyPath="yes" Type="integer" /&gt;
                 &lt;/RegistryKey&gt;
              &lt;/Component&gt;
            &lt;/Directory&gt;
        &lt;/Directory&gt;
      &lt;/Directory&gt;
  
      &lt;Feature Id="Complete" Title="TestApp"  Display="expand" Level="1" ConfigurableDirectory="INSTALLDIR"&gt;
        &lt;Feature Id="MainProgram" Title="Program" Description="The main executable." Level="1"&gt;
          &lt;ComponentRef Id="app.exe" /&gt;
        &lt;/Feature&gt;
      &lt;/Feature&gt;
    &lt;/Product&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>If it is possible to install the same application either per user or per machine - what should be changed in this example?</p>