Forum Discussion
Support for Windows services?
- May 23, 2018Support for Windows Services is an item in our backlog. The scenario will be able for enterprises and apps in the Microsoft Store for Business.
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
JeremyTellier Yes. MSIX apps may now contain services. Known caveats I am aware of:
- The service is deployed natively with the package, so unlike normal MSIX package install this requires administrative rights. But this is the same as an MSI would need.
- The service is running outside of the container. So far simple services seem OK, but I'm sure that we will see some services that really need to be in the container with the other components. So test.
- The deployment requires a 20.04 Operating System.
- JeremyTellierJun 04, 2020Copper ContributorI should mention I have a package I need in the Windows Store that has a UI Application and a Background Windows Service. I don't see how to do both in one anywhere, documentation is so light.
- Tanaka_JimhaJun 05, 2020Former Employee
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
- JeremyTellierJun 05, 2020Copper Contributor
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 04, 2020JeremyTellier I'm not sure. I would have used a third party product to help build the package from source. Advanced Installer should be able to do it, although possibly you need the paid for version. Flexera either can or should shortly be able to.Perhaps jvintzel can provide a link to some VS Setup Project compatible documentation.
- JeremyTellierJun 04, 2020Copper Contributor
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!