简体   繁体   中英

Save properties of windows service (Wix Installer)

I´m using wix to generate a installer of a windows service. I´m need to save "backup" the properties like "Log On" and "Recovery" and when I install a new version of the windows service apply this properties again. The idea is that this properties don´t lost.

在此处输入图片说明

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM