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 upgrade --all finds update but does nothing #3280

Open
sba923 opened this issue May 28, 2023 · 6 comments
Open

winget upgrade --all finds update but does nothing #3280

sba923 opened this issue May 28, 2023 · 6 comments
Labels
Command-Upgrade Issue related to WinGet Upgrade Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@sba923
Copy link

sba923 commented May 28, 2023

Brief description of your issue

winget upgrade --all tells me that at least one update is available, but does not install it:

image

Steps to reproduce

Run winget upgrade --all where winget list reports at least one entry in the Available column.

Expected behavior

The corresponding application should get updated.

Actual behavior

No update takes place.

Environment

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

Windows: Windows.Desktop v10.0.22621.1778
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.101.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label May 28, 2023
@mdanish-kh
Copy link
Contributor

winget list lists down all apps installed on your machine and tells you whether those apps are available via any configured source (WinGet Packages Repository and Microsoft Store are the configured sources by default). winget upgrade by itself is basically a filter for winget list to show packages that have an upgrade available through any of the configured sources. You can think of winget upgrade as just winget list --upgrade-available (which is a valid command that was added in the latest preview version of WinGet)

To upgrade, you either want to run winget upgrade --all, or use the package ID winget upgrade Microsoft.VisualStudio.2022.Community

@sba923
Copy link
Author

sba923 commented May 28, 2023

Oops, that's exactly what I'm doing... Will edit the issue...

@sba923 sba923 changed the title winget upgrade finds update but does nothing winget upgrade --all finds update but does nothing May 28, 2023
@mdanish-kh
Copy link
Contributor

Okay so I could also reproduce the problem. It's due to the fact that the installation is machine-wide but Scope: user is used in VS manifests due to which WinGet is not able to upgrade the package. I can update the manifest but it will probably require a review from VS Team

@sba923
Copy link
Author

sba923 commented May 28, 2023

Is this related to a recent change? This used to work fine....

@mdanish-kh
Copy link
Contributor

Yes, this is a recent change. The older manifests didn't use to contain the optional Scope value

@sba923
Copy link
Author

sba923 commented May 29, 2023

IMVHO two things should be done about this issue:

  1. fix the manifest for the specific VS2022 case
  2. teach winget to display a message explaining why no upgrade is / can be done in such a situation

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Command-Upgrade Issue related to WinGet Upgrade and removed Needs-Triage Issue need to be triaged labels May 30, 2023
@denelon denelon added this to the v.Next-Client milestone Jun 5, 2023
@denelon denelon removed this from the v.Next-Client milestone Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-Upgrade Issue related to WinGet Upgrade Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

3 participants