Recovery option in Windows Service - MSIX

New Contributor

How can I set the recovery option for a service in MSIX?

Sumit007_0-1670507913235.png

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?

 

2 Replies

@Sumit007 

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-trigger... 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.

Thanks @TIMOTHY MANGAN , I will check this