Reputation: 749
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.
Upvotes: 2
Views: 277
Reputation: 340
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
Upvotes: 1