title: WiX installer should always run as administrator
body: <p>I developed a custom installer with WiX for a .NET WPF application. It works fine if I right-click and run as administrator, however when running without, some components fail to install due to insufficient privileges.</p>
  
  <p>The components include SQL Server Express 2008 R2, FoxIt Reader, an ActiveX component and some others. It also requires that some SQL scripts are ran on the newly installed database - anyway, they all require administrator privileges.</p>
  
  <hr>
  
  <p>I tried adding the InstallScope="perMachine" and InstallPrivileges="elevated" attributes to the Package node, but this didn't seem to make a difference.</p>
  
  <p>I'm sure it's something silly, but I couldn't find anything in the reference or online.</p>