05-22-2018 01:47 PM
05-22-2018 01:47 PM
Will MSIX support installation of Windows services? We have a scenario in which customers have unattended computers that need to continue working across power failure/restoration, and Windows services provide our best solution.
05-22-2018 07:18 PMSolution
06-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.
05-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
01-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.
06-04-2020 06:40 AM
@JeremyTellier Yes. MSIX apps may now contain services. Known caveats I am aware of:
06-04-2020 08:58 AM
06-04-2020 10:38 AM
06-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
06-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...
06-29-2020 09:28 AM
@JeremyTellier To simplify the past by ignoring pre-releases mentioned in this thread (where things also work):
There currently is no support for services on 1909 and below versions of Windows 10. I have not heard Microsoft make any statements about potential back-porting, but I'm guessing that it is not in the plans.
06-29-2020 10:28 AM
Ok maybe something is missing here, when I try and push up an mxix in Windows Store without a service it works fine, but if I add a Windows Service I get this:
Package acceptance validation error: The package file Ziti Tunneler-x64.msix specifies a headless app. You don't have permission to create a headless app. Please update AppListEntry="none" in the AppxManifest file and also ensure you have the waiver "HeadlessAppBypass" associated to this app.
06-29-2020 02:12 PM
@JeremyTellier Hopefully it isn't because you are the first to try that....
But I do know that you must set a new "Capabilities" setting in the manifest to be allowed to have the service in the package. Off-hand I don't remember which one it is, only that one exists.
06-29-2020 07:08 PM
To offer the best experience for apps via our store we recommend moving from a service to a background task. Your app would need approval to be accepted in the Store with a service, you can find more info on that here - https://docs.microsoft.com/en-us/windows/uwp/packaging/app-capability-declarations#restricted-capabi...
06-29-2020 07:28 PM
@Tanaka_Jimha - and so our service takes over networking processing like a next generation vpn so it will require a lot more privileged than normal anyway so I would like info on the request process, but the documentation says I just have to state it in the submission, problem is, the submission just errors and doesn't let me submit.
07-01-2020 04:24 PM - edited 07-01-2020 04:26 PM
There is an alternative approval request process noted on the page that you can use (without making the submission). In your case you'd need to state that you're trying to submit a package with a service:
".. you must request approval in advance rather than providing info on the Submission options page. To do so, visit the Windows Developer support page. Select Developer support topic Dashboard issue, Issue Type App submissions, and Subcategory Other. Then describe how you are using the capability and why it is necessary for your product. If you do not provide all the information necessary, your request will be denied. You may also be asked to provide more information. Note that this process typically takes 5 business days or longer, so please submit your request well in advance.
You may also use this method of requesting approval (rather than providing this info during your submission), whether or not you're using a development sandbox, if you prefer to confirm that you are approved to use a restricted capability before you start your submission."