Error in parsing the app package when MSIX has packagedServices capability
Relevant area(s)
WinGet CLI
Relevant command(s)
No response
Brief description of your issue
We package our application as MSIX on windows, whenever user tries to install the application through this MSIX package file it fails with error: Error in parsing the app package.
We have narrowed down the issue to the packagedServices capability:
<rescap:Capability Name="packagedServices" />
When removing that capability the MSIX installs successfully, however the application then obviously lacks the necessary Windows service.
The issue appears with Windows Package Manager v1.12.340 and later. On earlier versions everything works as expected
Steps to reproduce
Download the package Try to install it
Press Restart as administrator
It fails with Error in parsing the app package
Expected behavior
Application is expected to be installed
Actual behavior
Installation fails
Environment
Windows Package Manager v1.12.350
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26100.6584
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.27.350.0
We are aware of this issue and it is already fixed in the code. We will publish a new version with the fix soon. It will initially go to Insiders and be published in the Releases page.
Does the installation work if you if you use the PowerShell command;
Add-AppxProvisionedPackage -PackageName Path\to\Package.msix -AllUsers -Online
We have a Service that is also failing to install in the same manner.
When we install using PowerShell the package installs but now the Service fails to start. Do you think that this could be related and the update might fix this issue as well?
The progress bar no longer works in the latest version of the Windows Package Manager.
All it says now is "Getting the system ready to install..." then the installation completes.
Reverting the Microsoft.DesktopAppInstaller package to 1.26.510.0 brings the correct operation of the progress bar.
Is that gong to be fixed in the new version of Windows Package Manager?
We can confirm that using the following PS Admin prompt installs the MaxiVPN app together with the service, as intended:
Add-AppxPackage -Path maxivpn_setup.msix
The MSIX is linked here in the first message if you want to test it on your own environment.
This is fixed in the latest version, build 1.27.420. It is currently available for Windows Insiders in the Beta ring, or you can download it from the Releases page in this repo.
We are seeing this issue again with 1.27.440.
Click restart as administrator.
Can anyone else verify the issue???
We know that it was indeed fixed in 1.27.240 as we had a major release just before Christmas and this came up in testing.
How are issues like this missed?!?