You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't find any possibility of setting the recovery options for a service added to an MSIX package. The service is added to the package manifest as a desktop6:Service element as described here. But after the package is installed, all recovery options for the service are set to Take no action:
And there is no possibility to change them neither manually:
nor via the sc failure cmd command (Result: Error: OpenService FAILED 5: Access is denied. is returned), nor from OpenService function call (it returns NULL and the GetLastError returns ACCES_DENIED=5 code), even if cmd and code are launched with the elevated privileges. It stops me from using this approach because I would like to rely on the service, so I want to set a restart recovery action. But with the Take no action recovery action, once the service process crashes, it will never be restarted by OS.
Is it possible to add this tuning?
The text was updated successfully, but these errors were encountered:
I didn't find any possibility of setting the recovery options for a service added to an MSIX package. The service is added to the package manifest as a
desktop6:Service
element as described here. But after the package is installed, all recovery options for the service are set toTake no action
:And there is no possibility to change them neither manually:
nor via the
sc failure
cmd command (Result: Error: OpenService FAILED 5: Access is denied.
is returned), nor from OpenService function call (it returnsNULL
and the GetLastError returnsACCES_DENIED=5
code), even if cmd and code are launched with the elevated privileges. It stops me from using this approach because I would like to rely on the service, so I want to set arestart
recovery action. But with theTake no action
recovery action, once the service process crashes, it will never be restarted by OS.Is it possible to add this tuning?
The text was updated successfully, but these errors were encountered: