You can set these as part of your install of the service.
For LogOn, see the Account property on the ServiceInstall element. It also has a Password property if you're using a user account that isn't built-in and uses a password. Not needed if you're using one like NT AUTHORITY\\LocalSystem. http://wixtoolset.org/documentation/manual/v3/xsd/wix/serviceinstall.html
For setting recovery options, check out the ServiceConfig element from the WixUtilExtension: http://wixtoolset.org/documentation/manual/v3/xsd/util/serviceconfig.html
您可以在 exe.config 中存储您的服务设置
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.