gemr1423
gemr1423

Reputation: 749

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.

enter image description here

Upvotes: 2

Views: 277

Answers (2)

NickRamirez
NickRamirez

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

Chris Tanev
Chris Tanev

Reputation: 212

You can store your settings for the service in exe.config

Upvotes: 0

Related Questions