I've got a windows service that should run under a domain account specified by the user during installation.
How is this possible with a Wix
installer (i.e. ask the user for a account + password that the service should be using)?
Background
My service needs access to a network share and LocalSystem
doesn't have the appropriate rights so I want to use an existing domain user account.
ServiceInstall element is your friend here. It contains the attributes Account and Password. So, author a couple of controls on your dialog:
And use these properties to instruct ServiceInstall:
Hope this helps.