May 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.
May 22 2018 07:18 PM
SolutionJun 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 24 2019 04:43 PM
@John Vintzel Is this this now available in the May Win 10 update?
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
Jun 24 2019 07:58 AM
@John Vintzel Will that require insider flights of the OS also?
Jun 24 2019 08:14 AM
@TIMOTHY MANGAN I was speaking to the OS. Support for services is one of the few things that will require an OS update.
Oct 22 2019 05:12 AM
@John Vintzel Is the support for windows service available in latest update .
Oct 22 2019 06:02 AM
Its part of the latest Windows Insider preview builds (18999 or later). The MSIX Packaging Tool does not yet support capturing. That will be coming in the next release.
John.
Jan 06 2020 02:57 AM
@John VintzelIs the support for services now available in MSIX Packaging tool Insiders Build?
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.
https://docs.microsoft.com/en-us/windows/msix/packaging-tool/release-notes/history
Jun 04 2020 05:55 AM
@sw-services null - Its been a couple years, did you ever figure this out?
I need a Windows Store app to both install a UI and a Windows Service to manage background updates.
Thanks
Jun 04 2020 06:40 AM
@JeremyTellier Yes. MSIX apps may now contain services. Known caveats I am aware of:
Jun 04 2020 08:57 AM
@TIMOTHY MANGAN - Is it possible to configure that with a Windows Installer Packaging Project? I have been looking for examples everywhere, I was about to downgrade to a Windows Setup Project form VS 2015. Thanks!
Jun 04 2020 08:58 AM
Jun 04 2020 10:38 AM
Jun 05 2020 10:21 AM
Hi @JeremyTellier,
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
Cheers,
Tanaka
Jun 05 2020 01:55 PM
@Tanaka_Jimha Those do not run as LocalSystem though right? The process needs to pull down a service and uninstall/reinstall and resent network settings that require a higher priv level.
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...
Jun 29 2020 07:10 AM
@TIMOTHY MANGAN - That is not the intent, it does a lot more than that, it is just one of the things it needs to handle, but regardless Windows Store apps should allow you to install and run Windows Services.