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

WinGet Download presents error when it should be a warning. #4643

Closed
KevinLaMS opened this issue Jul 16, 2024 · 2 comments · Fixed by #4841
Closed

WinGet Download presents error when it should be a warning. #4643

KevinLaMS opened this issue Jul 16, 2024 · 2 comments · Fixed by #4841
Labels
Area-Output Issue related to CLI output Command-Download Issue related to WinGet Download In-PR Issue related to a PR Issue-Feature This is a feature request for the Windows Package Manager client.
Milestone

Comments

@KevinLaMS
Copy link
Contributor

Brief description of your issue

When downloading a store app, the user is presented with the following if they do not have admin access to the license.

Failed to retrieve Microsoft Store package license
An unexpected error occurred while executing the command:
0x80190193 : Forbidden (403).

Given this is targeting a user or ITPro. For the user, they can run the app and the license will come down from the store. Therefore not an error.
For the ITPro, they can pass in the --skip-license to avoid this case.

Steps to reproduce

winget download 9WZDNCRFJ3PZ -d c:\temp\deleteme\9WZDNCRFJ3PZ

Expected behavior

To be told the package was successfully installed and not error.

Actual behavior

Failed to retrieve Microsoft Store package license
An unexpected error occurred while executing the command:
0x80190193 : Forbidden (403).

Environment

Windows Package Manager (Preview) v1.9.1792-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26255.5000
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.1792.0
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Jul 16, 2024
@denelon denelon added Issue-Feature This is a feature request for the Windows Package Manager client. Command-Download Issue related to WinGet Download Area-Output Issue related to CLI output and removed Needs-Triage Issue need to be triaged labels Jul 16, 2024
@CyrilShi
Copy link

CyrilShi commented Aug 2, 2024

I have the same issue , but it seems not affect to download completed.

@denelon
Copy link
Contributor

denelon commented Aug 6, 2024

You can use "--skip-license" to avoid downloading the license file. It's only necessary if the intended use is for "offline" installation on another host that isn't able to connect to the licensing server.

@yao-msft yao-msft linked a pull request Sep 30, 2024 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 1, 2024
@denelon denelon added this to the 1.9 Client milestone Oct 10, 2024
@denelon denelon added this to WinGet Oct 22, 2024
@denelon denelon moved this to Done in WinGet Oct 22, 2024
@denelon denelon moved this from Done to Released in WinGet Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Output Issue related to CLI output Command-Download Issue related to WinGet Download In-PR Issue related to a PR Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
Status: Released
Development

Successfully merging a pull request may close this issue.

3 participants