Forum Discussion
Windows Service Msix Automatic Update - in SYSTEM ACCOUNT
jocs
Based on the https://learn.microsoft.com/en-au/windows/msix/desktop/desktop-to-uwp-prepare..
MSIX doesn't support windows services that need to run under system accounts. I think you need to fall back to MSI if you need to install a service under a system account. Or run some sort of custom script post install to configure it..
Your application requires a kernel-mode driver or a Windows service. MSIX does not support a kernel-mode driver or a Windows service that needs to run under a system account. Instead of a Windows service, use a https://learn.microsoft.com/en-us/windows/uwp/launch-resume/create-and-register-a-background-task.
- Oct 04, 2023
jocs I am assuming that you didn't really mean the System account, but that you were elevating from a user account, which is different...
The intended way to automate update MSIX apps (even those with services) is one of the following:
- Distribute through the Microsoft Store.
- Intune, Config Manager, or other management platform that uses a local agent that will already have the extra permissions needed.
- Install the original package using an AppInstaller File. This one became dicey when Microsoft disabled the feature in the Desktop.Appinstaller program that is used to perform the installation due to a security issue. But there is a policy that can be enabled to allow use of the AppInstaller file for the installation. This should probably only be used when the AppInstaller file and package source are stored in a secure location within the company's premises to avoid the security issue. This was discussed in a post by Dian (a Microsoft employee) Disabling the MSIX ms-appinstaller protocol handler - Microsoft Community Hub
Trying to start that install from within the package directly is something that I don't think is going to work.