Patrick Pirzer
Patrick Pirzer

Reputation: 1759

How to check in WiX, if user has admin rights?

I have programmed a Bootstrapper application with WiX 3.8, which installs IIS Express 8.0 and activates IIS-features. But the feature-activation only works, when the user is a local administrator at least. How can i check in a WiX-Bootstrapper, if the user has admin rights? Thanks in advance!

Upvotes: 1

Views: 1421

Answers (1)

Christopher Painter
Christopher Painter

Reputation: 55601

See:

Burn Built-in Variables

•Privileged - non-zero if the process could run elevated (on Vista+) or is running as an Administrator (on WinXP).

This is similar to the Windows Installer Privileged property.

Also check that you are using the PerMachine attribute on the ExePackage element if you are using it.

Upvotes: 3

Related Questions