Repository navigation
Open
Labels
Area-MatchingIssue related to correlation between installed package and manifestIssue-BugIt either shouldn't be doing this or needs an investigation.
Description
Please confirm these before moving forward
- I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- I have not been informed if the issue is resolved in a preview version of the winget client.
Category of the issue
Installation issue.
Brief description of your issue
When I execute "winget upgrade --all" it doesn't download the x86 version of the Microsoft.DotNet.DesktopRuntime.6 package which is installed side-by-side on x64-based installations.
Steps to reproduce
Execute "winget upgrade --all".
Actual behavior
It downloads the x64 version when it should be downloading the x86 version since both need to be updated.
Expected behavior
It should be downloading both the x86 and the x64 versions.
Environment
Windows Package Manager (Preview) v1.3.1391-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22000.739
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.1391.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
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-saleScreenshots and Logs
No response
Reacted by Arnav Bhate, Bertaz, Marco Lackovic, Olav Rønnestad Birkeland and Imre Eilertsen
Reacted by Travis J. Gutjahr
Metadata
Metadata
Assignees
Labels
Area-MatchingIssue related to correlation between installed package and manifestIssue-BugIt either shouldn't be doing this or needs an investigation.
Activity
denelon commentedon Jun 15, 2022
We need to have a way to determine the architecture for a given installed package to upgrade architectures that aren't the default architecture on the system. The current logic looks at the architecture of the system to make the determination of the best architecture to install when the "--architecture <architecture>" isn't specified.
denelon commentedon Jun 17, 2022
Thomas Parkison (@trparky)
As a workaround you can specify the "--architecture" to get the x86 variations
[-][Package Issue]: Microsoft.DotNet.DesktopRuntime.6[/-][+][Package Issue]: Microsoft.DotNet.DesktopRuntime.6 doesn't upgrade all architectures[/+][-][Package Issue]: Microsoft.DotNet.DesktopRuntime.6 doesn't upgrade all architectures[/-][+]Upgrade doesn't upgrade all architectures[/+]NJT145 commentedon Jan 25, 2023
The same feature need to be added to
winget uninstallcommand. For example, I can not uninstall Oracle.JavaRuntimeEnvironment because I have both x86 and x64 versions.o-l-a-v commentedon Sep 16, 2024
Simple repro that shows that
winget upgradewith--architecturedoes not work either, as suggested by comment #2243 (comment). I originally posted this to #4810.Now try to either upgrade or uninstall just x64.
Output of
winget upgrade --silent --exact --id Microsoft.DotNet.DesktopRuntime.6 --architecture x64with WinGet v1.8.1911.Click to view
From the logs it does not seem like it differentiates on architecture? 🤔
Given how WinGet works right now it'd probably work better with one ID per architecture (
Microsoft.DotNet.DesktopRuntime.6.x86,Microsoft.DotNet.DesktopRuntime.6.x64etc.).Edit: Upgrade with full name seems to work, but look at what URL it fetches. 🤦♂️
Logs
Edit 2: Add
--architectureto previous command and it works.rvtdadmin commentedon Apr 15, 2025
I assume this is still an issue that
winget upgrade --allwill not determine the architecture for the ID to update.Example:
Oracle.JavaRuntimeEnvironment x86 is installed, which is in the manifest.
Winget upgrade Oracle.JavaRuntimeEnvironmentwill replace my x86 version with the x64 version.Can you let us know if there is progress on this? x86 applications getting replaced with x64 is a real issue for us.
Thank you
DandelionSprout commentedon May 15, 2026
For that very specific situation,
EclipseAdoptium.Temurin.19.JRE.x86got recently added to Winget and would be able to be installed alongside an x64Oracle.JavaRuntimeEnvironment. That approach seems to work for at least microsoft/winget-pkgs#369810.Though it fixes almost none of the underlying issues, and would not work for most apps other than JRE ones, it should work for that case.
Daolyap commentedon Jun 8, 2026
Wouldn't an --all-architecture flag make sense for winget upgrade? With .NET you could
winget upgrade --id Microsoft.DotNet.DesktopRuntime.6 --all-architectures