Forum Discussion
devdelimited
Mar 19, 2021Copper Contributor
Standalone Windows Services
Now that Windows Services are supported, can someone provide some information on exactly how to set up an MSIX package for a standalone traditional Windows Service? I know Microsoft wants us to r...
Bogdan Mitrache
Mar 22, 2021Iron Contributor
Most likely the Windows Application Packaging Project doesn't include dedicated GUI for adding Win32 services into an MSIX package, this is a relatively new feature for MSIX packages.
You can probably manually tweak the AppXManifest to add the service declarations in the package.
This article has more details about how services work inside an MSIX packages, what declarations you need to add in the package manifest and additional details.
https://www.advancedinstaller.com/msix-windows-services.html
You can probably manually tweak the AppXManifest to add the service declarations in the package.
This article has more details about how services work inside an MSIX packages, what declarations you need to add in the package manifest and additional details.
https://www.advancedinstaller.com/msix-windows-services.html
- devdelimitedMar 29, 2021Copper ContributorI appreciate your reply, Bogdan. However, I'm really looking for Microsoft to improve the documentation and support for services. Years ago, they had taken Setup projects away from us, sprouting a third party takeover. Now, they are clawing it back, in a way, with MSIX. However, it would appear they still have some work to do to fully support server applications - e.g. Microsoft Server and Windows Services support. What they need to realize is that so many development teams refuse to pay thousands of dollars on packaging. As a result, the server-based products they push out to clients bring an amateur look & feel when they're ugly ZIPs with SC.exe steps, etc.
For others finding this thread, after much searching, I found the official documentation for the manifest.
https://docs.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-desktop6-service
HOWEVER, this still appears to apply to a service that is tied to and required by a UWP GUI application.- Mar 30, 20211-You can create a package with a service and no actual application, although the WAP isn't going to make that easy.
2-As the service would be pushed out just like a traditional setup, perhaps you shouldn't be "pushing on the rope" to use this as a way to push out and stick with what works. At least for now.- devdelimitedMar 30, 2021Copper ContributorWhile I do enjoy your use of the phrase "pushing on the rope" - development does feel like that quite often - this doesn't really provide much in the way of how to actually get it done.
With regards to the old Setup way, sadly the Visual Studio no longer supports that and the "hacky" reverse integration of the old Setup project types doesn't work with the latest frameworks. I think Microsoft recognizes this; however, they have quite a bit of work ahead of them.
If I'm reading the tea leaves correctly, Windows Server 2022 is likely the going to be first version to fully support MSIX, and it looks like Windows Services in general will have more complete support by then (along with a bunch of other missing features).
Again, I appreciate your help though.