winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Error in parsing the app package when MSIX has packagedServices capability

Open mich83 opened this issue 1 year ago • 6 comments

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

Image

Press Restart as administrator

Image

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

mich83 avatar Nov 07 '25 14:11 mich83

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.

florelis avatar Nov 08 '25 00:11 florelis

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?

SimonFolder avatar Nov 11 '25 13:11 SimonFolder

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?

SimonFolder avatar Nov 11 '25 15:11 SimonFolder

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.

tzahico avatar Nov 11 '25 15:11 tzahico

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.

florelis avatar Nov 11 '25 20:11 florelis

We are seeing this issue again with 1.27.440.

Image

Click restart as administrator.

Image

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?!?

SimonFolder avatar Jan 08 '26 11:01 SimonFolder