serviceinstall

WiX ServiceInstall - setting the service to run as the current windows user

妖精的绣舞 提交于 2019-12-12 07:14:56
问题 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

WIX ServiceInstall - setting the service to run under the NetworkService account

吃可爱长大的小学妹 提交于 2019-12-07 09:16:27
问题 I am trying to create a WIX installer to install my windows service to run under the NetworkService account and getting an Insufficient Priviledges error during the installation. I found this post where someone seems to be experiencing the same problem but no real solution was offered: http://n2.nabble.com/Re-WiX-users-Digest-Vol-40-Issue-129-td3782055.html I'm sure someone must have acheived this previously and wondered if they'd be kind enough to share a code snippet? 回答1: NOTE: The answer

WiX ServiceInstall - setting the service to run as the current windows user

旧城冷巷雨未停 提交于 2019-11-30 13:08:18
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? 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 service will need to have the Log On As Service privileged. This is not granted to users by default. I was able to