Forum Discussion
Sumit007
Dec 08, 2022Copper Contributor
Recovery option in Windows Service - MSIX
How can I set the recovery option for a service in MSIX?
I tried adding capabilities (Local System Services and Packaged Services) and using the sc failure command through PSF; however, it didn't work.
Does MSIX support the service recovery option?
I wouldn't expect the PSF to help on this. More likely, this would have to be supported by settings in the AppXManifest file.
A quick look at Desktop6 schema for services shows there is https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-desktop6-triggerevents which I suppose might work.
I have not used this, but I suppose maybe you can trigger on an event log event that the service stopped and take action.
- Sumit007Copper ContributorThanks TIMOTHY_MANGAN , I will check this