winget-cli
winget-cli copied to clipboard
Winget not recognising an update is installed, and installs it every time I run update
Brief description of your issue
Currently every time I run winget update --all, it will upgrade Microsoft.DotNet.HostingBundle.8 to Version 8.0.1
It appears to successfully install, but next time I run winget update --all it installs again.
In the past I have had the same issue with different packages. My resolution was to uninstall the package, then install again via winget (originally they were installed from a downloaded exe)
I tried the same strategory this time but it didn't work. Still tries to install HostingBundle Version 8.0.1 each time.
How can I resolve this?
Steps to reproduce
- Have Microsoft.DotNet.HostingBundle.8 Version 8.0 installed.
- Run
winget update --all
Expected behavior
Expected it to update just once
Actual behavior
It updates every time
Environment
Windows Package Manager v1.6.3482
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.3085
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3482.0
Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Installer Downloads %USERPROFILE%\Downloads
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
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
good
In the past I have had the same issue with different packages. My resolution was to uninstall the package, then install again via winget (originally they were installed from a downloaded exe)
Are you able to provide the output of winget list '.NET' as well as the log files from winget upgrade --all --verbose?
Yes, same problem here.
Are you able to provide the output of
winget list '.NET'as well as the log files fromwinget upgrade --all --verbose?
Attached... hopefully
I wonder if there's installation conflicts between Visual Studio Installer and Winget?
WinGet-Microsoft.DotNet.HostingBundle.8.8.0.1-2024-01-30-11-08-36.767.log WingetListDotNet.txt
Are those logs enough to help? Is there any more info I can provide?
This problem is increasing every new DotNet update it seems.
Please can this have some attention because it makes WinGet basically unusable for me.
I either have to individually update just the packages I want to update, or suffer reinstalling packages over and over
Now every time I run winget upgrade -all, the folowing packages repeatedly update
Microsoft.DotNet.DesktopRuntime.6
Microsoft.VCRedist.2015+.x64
Microsoft.DotNet.HostingBundle.8
Microsoft.DotNet.AspNetCore.6
Microsoft.DotNet.HostingBundle.8
Here is a new collection of logs. It says filesize too big (from a single winget -upgrade) so I have zipped them WinGet-Logs.zip
It seems this is related to the many https://github.com/microsoft/winget-cli/issues?q=is%3Aissue+is%3Aopen+label%3AArea-Matching issues that are being tracked at the moment
There's definitely a conflict with Visual Studio / Visual Studio Installer somehow.
I just used VS Installer to apply this weeks VS updates, and now Winget situation has improved. I only have 1 package that keeps reinstalling WinGet-More-Logs.zip
My actions:
- Update via VS Installer
- Winget upgrade --all (still tried to upgrade all previously mentioned packages)
- Winget upgrade --all (this time it seems like the first winget ugprade worked correctly, and there was only
Microsoft.VCRedist.2015+.x64left - Winget upgrade --all (Microsoft.VCRedist.2015+.x64 still attempting to install each time)
Microsoft.SQLServerManagementStudio have released 20.0, and now Winget continually upgrades from 19.3 to 20.0 each time I run upgrade --all
Microsoft.SQLServerManagementStudio have released 20.0, and now Winget continually upgrades from 19.3 to 20.0 each time I run
upgrade --all
This is because 19.3 and 20.0 install side by side. If you uninstall version 19.3 it should stop the upgrade loop
Shouldn't Winget detect 20.0 is already installed? That sounds like winget's job
In my case I'm trying out 20.0 but not ready to fully switch as some of my extensions don't work with 20.0 yet.
In the meantime upgrade --all is broken.
There's often reasons why people would have 2 versions installed, and it shouldn't break the package manager
We're doing some work on side-by-side scenarios. We'll be tracking feedback at: https://github.com/microsoft/winget-cli/discussions/4281. The experimental feature should go out soon in the next WinGet 1.8-preview release.
- #4281
WinGet 1.8 has been released with better support for "side-by-side" packages.