Emma Rochweel
Emma Rochweel

Reputation: 87

Windows Installer with Administrator rights

I use Wix toolset 3.5 and am interested to know if there is any windows installer which installs only for the administrator?

Upvotes: 1

Views: 1781

Answers (2)

AkmecNurik
AkmecNurik

Reputation: 205

MOreover, in addition to the answer of @Wim and comments, u can try to create a logic of ur installer based on WiX flag Privileged. it will help u to install some features (or even components) only for admin user (this flag check if the current user has admin rights). Usage of this flag is just simple:

 <Component Id="" Guid="">Priveleged</Component>

and in this case component will install only when the current user has an admin rights. hope will help

Upvotes: 1

Wim Coenen
Wim Coenen

Reputation: 66763

There can be more than one user with administrative privileges, so I would install for all users and set up the application to require admin rights at start-up. One way to do that is with an application manifest: http://msdn.microsoft.com/en-us/library/windows/desktop/bb756929.aspx

Upvotes: 1

Related Questions