Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install MSIX package #3724

Closed
BalajiSubramaniam opened this issue Oct 2, 2023 · 2 comments · Fixed by #3725
Closed

Unable to install MSIX package #3724

BalajiSubramaniam opened this issue Oct 2, 2023 · 2 comments · Fixed by #3725
Assignees
Labels
In-PR Issue related to a PR Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@BalajiSubramaniam
Copy link

BalajiSubramaniam commented Oct 2, 2023

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 : App Installer failed to connect to the winget source for external package dependencies. Please report at https://aka.ms/winget-cli
When did it begin and how often does it occur?
It started on 9/25 Monday evening , it occurs every time user tries to install the MSIX package .
What errors do you see?
Reason : App Installer failed to connect to the winget source for external package dependencies. Please report at https://aka.ms/winget-cli
What's the environment and are there recent changes?
Windows 10 20H2
What have you tried to troubleshoot this?
PowerShell script works : Add-AppPackage -path "msix package path"

Investigation:
We identified the external dependencies responsible for causing errors with the latest version of winget-cli(winget-cli v1.6.2721). Also we are able to replicate the same issue within a sample MAUI application(MAUITestApp.zip) msix package.
The external dependency in question is "Microsoft.WebView2," and you can find it specified in the following location within the MAUITestApp.zip)\Platforms\Windows\Package.appxmanifest:

<win32dependencies:ExternalDependency
Name="Microsoft.WebView2"
Publisher="CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
MinVersion="1.1.1.1"
Optional="false"/>

To reproduce the issue, please follow these steps:

  1. Upgrade to winget-cli v1.6.2721
  2. Install the development certificate, MAUITestApp_TemporaryKey.zip password = 'test', to enable the installation process.
  3. Install the sample program by using the MAUITestApp_1.0.0.1_x64.msix package.

Downgrading to winget-cli v1.5.2201 fixes the issue on my machine.

Furthermore we are able reproduce the issue with any external dependency(other than Microsoft.WebView2) using sample test program : MAUITestApp.zip)\Platforms\Windows\Package.appxmanifest:

<win32dependencies:ExternalDependency
Name="Microsoft.WinJS.1.0"
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
MinVersion="1.0.0.0"
Optional="false"/>
image

Steps to reproduce

To reproduce the issue, please follow these steps:

  1. Upgrade to winget-cli v1.6.2721
  2. Install the development certificate, MAUITestApp_TemporaryKey.zip password = test, to enable the installation process.
  3. Install the sample program by using the MAUITestApp_1.0.0.1_x64.msix package.

Downgrading to winget-cli v1.5.2201 fixes the issue on my machine.

Expected behavior

MSIX package installer should install the application successfully

Actual behavior

MSIX package installer is erroring out
image

Environment

Windows Package Manager v1.6.2721
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19042.2965
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.2721.0
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Oct 2, 2023
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Oct 2, 2023
@yao-msft yao-msft linked a pull request Oct 2, 2023 that will close this issue
@microsoft-github-policy-service microsoft-github-policy-service bot added the In-PR Issue related to a PR label Oct 2, 2023
@yao-msft yao-msft reopened this Oct 3, 2023
@yao-msft
Copy link
Contributor

yao-msft commented Oct 3, 2023

Reopened for tracking.
Fix is merged. Will close the issue until fix is released.

@denelon
Copy link
Contributor

denelon commented Oct 10, 2023

This fix for this has been released in https://github.com/microsoft/winget-cli/releases/tag/v1.6.2771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In-PR Issue related to a PR Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants