wixwindows-installeradmin-rights

MSI error: requires administrative rights


It works on Win7 when I run msi file from local disk and from network share.

But when I run msi file on Win8-10 I get an error:

This application requires administrative rights

I set for Product:

 InstallScope="perMachine"
 InstallPrivileges="elevated"

Also, I have 10 custom actions (.NET).

How I can fix it?


Solution

  • Have you tried running it from elevated command prompt?

    Open Start, type "cmd", right click on "cmd.exe", click "Run as administrator". Then navigate to your MSI file and use msiexec /i "yourmsi.msi"

    If you want your installer to start elevated itself, you can create a bootstrapper application (executable file) to run it.