WiX ServiceInstall - setting the service to run as the current windows user
问题 I am installing a Windows service using WiX. How can I make the service run in the context of Windows User that runs the installer? 回答1: You need to have both the account name and password for the user you want to run the service as. I was able to accomplish this by adding a custom UI to my installer asking for a User Name and Password, and then using the supplied values for the Account and Password attributes on the ServiceInsall element. Note that what ever account is used to run the