May 22 2018 01:47 PM
May 22 2018 07:18 PMSolution
Jun 13 2018 06:59 AM
The same way MSIX brings all the packaging features to any app that were originally only available to UWP/Store apps, giving regular apps a bit of a boost in terms of lifecycle and rights management, it would be nice to have MSIX for Windows Services with support for traditional Windows Services use-case scenarios but also "UWP Background Task"-like features with stricter resource management, system triggers, etc.
Also, with the "sandboxing" features of MSIX, it could be a very interesting alternative to Containers on servers to achieve even higher deployment density, pretty much the same as hosting services as processes, but still with an extra layer of protection around it.
May 26 2019 05:38 AM
It's not part of the May release, but you will see it in Insider flights later this summer.
John Vintzel (@jvintzel)
Program Manager Lead, MSIX
Jan 06 2020 11:07 AM
We try to keep the release notes up to date for new features. Services is in the latest insider build.
Jun 04 2020 06:40 AM
@JeremyTellier Yes. MSIX apps may now contain services. Known caveats I am aware of:
Jun 04 2020 08:58 AM
Jun 04 2020 10:38 AM
Jun 05 2020 10:21 AM
The recommendation for apps in development is to use a background task instead of a windows service. You can create an out-of-process background task as outlined here - https://docs.microsoft.com/en-us/windows/uwp/launch-resume/create-and-register-a-background-task
Jun 05 2020 04:04 PM
@JeremyTellier If the only purpose of the service is to update the application, and you are the developer, then you should probably be looking at ditching the service and using a better supported way of updating MSIX apps.
Presumably the existing service is making some sort of web connection to detect and download the new software. MSIX has that built in, if you ask for it. This will be much simpler for you to support. Here is a link about this, but perhaps @Tanaka_Jimha has a better one.
There are some limitations to consider... See: https://techcommunity.microsoft.com/t5/msix-deployment/msix-automatic-updates-and-authentication/m-p...