Reputation: 41
I'm using a wix installer to install a windows service using an existing user account(logon user account for the window service). I have a customUI dialog which will get the username and password, once the credentials are given while clicking the next button the installer should validate whether the given user is part of builtin administrator group. Should i use custom action or is there anyother way?
Upvotes: 1
Views: 1058
Reputation: 32270
This has to be a custom action. WiXUtilExtension gives you an option to add new or existing users to the groups (see User/Group/GroupRef elements), but this is probably not what you want - it can be quite dangerous.
BTW, you can take advantage of MSI Extensions project - take a look at this, it seems to be exactly what you need.
Upvotes: 2