microsoft / microsoft/winget-cli

Winget acting strange after moving package cache and temp to Dev-Drive

Open
#4,616 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

After moving the package cache and temporary directories to a Dev-Drive, winget list displays packages with unusual prefixes such as MSIX/ or ARP/. This behavior did not occur before the change.

Additionally, updating or working these packages with prefixes seems impossible. It only affects the packages that were deployed by default during the Windows 11 installation.

VS Code, for example, was install after the Dev-Drive was setup and seems to work correctly:

Microsoft Visual Studio Code (User)                   XP9KHM4BK9FZ7Q                                                        

However, Intel Graphics Command Center, for example, does update or not work correctly. I believe Intel Graphics Command Center was installed by Windows automatically.

Intel® Graphics Command Center                        MSIX\AppUp.IntelGraphicsExperience_1.100.5536.0_x64__8j3eq9eme6ctt

Below is the output on a fresh Win 11 install.

> winget list
Name                                                  Id                                                                    Version           Available        Source
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Microsoft OneDrive                                    Microsoft.OneDrive                                                    22.012.0117.0003  24.116.0609.0005 winget
NVIDIA Graphics Driver 456.71                         ARP\Machine\X64\{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.Driver 456.71
Microsoft Update Health Tools                         ARP\Machine\X64\{C6FD611E-7EFE-488C-A0E0-974C09EF6473}                5.72.0.0
Microsoft Edge                                        Microsoft.Edge                                                        126.0.2592.87                      winget
Microsoft Edge Update                                 ARP\Machine\X86\Microsoft Edge Update                                 1.3.187.41
Microsoft Edge WebView2 Runtime                       Microsoft.EdgeWebView2Runtime                                         126.0.2592.87                      winget
vs_CoreEditorFonts                                    ARP\Machine\X86\{1851460E-0E63-4117-B5BA-25A2F045801B}                17.7.40001
Realtek High Definition Audio Driver                  ARP\Machine\X86\{F132AF7F-7BCA-4EDE-8A7C-958108FE7DBC}                6.0.1.8308
Microsoft Visual Studio Code (User)                   XP9KHM4BK9FZ7Q                                                        1.91.0                             msstore
Intel® Graphics Command Center                        MSIX\AppUp.IntelGraphicsExperience_1.100.5536.0_x64__8j3eq9eme6ctt    1.100.5536.0
Microsoft Clipchamp                                   MSIX\Clipchamp.Clipchamp_3.1.10620.0_neutral__yxz26nhyzhsrt           3.1.10620.0
Cortana                                               MSIX\Microsoft.549981C3F5F10_4.2308.1005.0_x64__8wekyb3d8bbwe         4.2308.1005.0
News                                                  MSIX\Microsoft.BingNews_4.55.62231.0_x64__8wekyb3d8bbwe               4.55.62231.0
MSN Weather                                           MSIX\Microsoft.BingWeather_4.53.61401.0_x64__8wekyb3d8bbwe            4.53.61401.0
App Installer                                         Microsoft.AppInstaller                                                1.23.1791.0                        winget
Xbox                                                  MSIX\Microsoft.GamingApp_2406.1001.20.0_x64__8wekyb3d8bbwe            2406.1001.20.0
Get Help                                              MSIX\Microsoft.GetHelp_10.2403.20861.0_x64__8wekyb3d8bbwe             10.2403.20861.0
Microsoft Tips                                        MSIX\Microsoft.Getstarted_10.2312.1.0_x64__8wekyb3d8bbwe              10.2312.1.0
HEIF Image Extensions                                 MSIX\Microsoft.HEIFImageExtension_1.1.861.0_x64__8wekyb3d8bbwe        1.1.861.0
HEVC Video Extensions from Device Manufacturer        MSIX\Microsoft.HEVCVideoExtension_2.1.1803.0_x64__8wekyb3d8bbwe       2.1.1803.0
Microsoft Edge                                        MSIX\Microsoft.MicrosoftEdge.Stable_126.0.2592.87_neutral__8wekyb3d8… 126.0.2592.87
Microsoft 365 (Office)                                MSIX\Microsoft.MicrosoftOfficeHub_18.2405.1221.0_x64__8wekyb3d8bbwe   18.2405.1221.0
Solitaire & Casual Games                              MSIX\Microsoft.MicrosoftSolitaireCollection_4.20.6270.0_x64__8wekyb3… 4.20.6270.0
Microsoft Sticky Notes                                MSIX\Microsoft.MicrosoftStickyNotes_4.0.6102.0_x64__8wekyb3d8bbwe     4.0.6102.0
Microsoft .Net Native Framework Package 2.2           MSIX\Microsoft.NET.Native.Framework.2.2_2.2.29512.0_x64__8wekyb3d8bb… 2.2.29512.0
Microsoft .Net Native Framework Package 2.2           MSIX\Microsoft.NET.Native.Framework.2.2_2.2.29512.0_x86__8wekyb3d8bb… 2.2.29512.0
Microsoft .Net Native Runtime Package 2.2             MSIX\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe  2.2.28604.0
Microsoft .Net Native Runtime Package 2.2             MSIX\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x86__8wekyb3d8bbwe  2.2.28604.0
Outlook for Windows                                   MSIX\Microsoft.OutlookForWindows_1.2024.625.600_x64__8wekyb3d8bbwe    1.2024.625.600
Paint                                                 MSIX\Microsoft.Paint_11.2404.1020.0_x64__8wekyb3d8bbwe                11.2404.1020.0
Microsoft People                                      MSIX\Microsoft.People_10.2202.100.0_x64__8wekyb3d8bbwe                10.2202.100.0
Power Automate                                        MSIX\Microsoft.PowerAutomateDesktop_1.0.1225.0_x64__8wekyb3d8bbwe     1.0.1225.0
PowerShell                                            MSIX\Microsoft.PowerShell_7.4.3.0_x64__8wekyb3d8bbwe                  7.4.3.0
Raw Image Extension                                   MSIX\Microsoft.RawImageExtension_2.3.1221.0_x64__8wekyb3d8bbwe        2.3.1221.0
Snipping Tool                                         MSIX\Microsoft.ScreenSketch_11.2405.32.0_x64__8wekyb3d8bbwe           11.2405.32.0
Windows Security                                      MSIX\Microsoft.SecHealthUI_1000.25992.9000.0_x64__8wekyb3d8bbwe       1000.25992.9000.0
Microsoft Engagement Framework                        MSIX\Microsoft.Services.Store.Engagement_10.0.23012.0_x64__8wekyb3d8… 10.0.23012.0
Microsoft Engagement Framework                        MSIX\Microsoft.Services.Store.Engagement_10.0.23012.0_x86__8wekyb3d8… 10.0.23012.0
Store Experience Host                                 MSIX\Microsoft.StorePurchaseApp_22403.1401.1.0_x64__8wekyb3d8bbwe     22403.1401.1.0
Microsoft To Do                                       MSIX\Microsoft.Todos_0.114.7122.0_x64__8wekyb3d8bbwe                  0.114.7122.0
Microsoft.UI.Xaml.2.7                                 Microsoft.UI.Xaml.2.7                                                 7.2208.15002.0                     winget
Microsoft.UI.Xaml.2.7                                 Microsoft.UI.Xaml.2.7                                                 7.2208.15002.0                     winget
Microsoft.UI.Xaml.2.8                                 Microsoft.UI.Xaml.2.8                                                 8.2310.30001.0                     winget
Microsoft.UI.Xaml.2.8                                 Microsoft.UI.Xaml.2.8                                                 8.2310.30001.0                     winget
Microsoft Visual C++ 2015 UWP Desktop Runtime Package Microsoft.VCLibs.Desktop.14                                           14.0.33728.0                       winget
Microsoft Visual C++ 2015 UWP Desktop Runtime Package Microsoft.VCLibs.Desktop.14                                           14.0.33728.0                       winget
Microsoft Visual C++ 2015 UWP Runtime Package         MSIX\Microsoft.VCLibs.140.00_14.0.30704.0_x64__8wekyb3d8bbwe          14.0.30704.0
Microsoft Visual C++ 2015 UWP Runtime Package         MSIX\Microsoft.VCLibs.140.00_14.0.33519.0_x64__8wekyb3d8bbwe          14.0.33519.0
Microsoft Visual C++ 2015 UWP Runtime Package         MSIX\Microsoft.VCLibs.140.00_14.0.33519.0_x86__8wekyb3d8bbwe          14.0.33519.0
VP9 Video Extensions                                  MSIX\Microsoft.VP9VideoExtensions_1.1.451.0_x64__8wekyb3d8bbwe        1.1.451.0
Web Media Extensions                                  MSIX\Microsoft.WebMediaExtensions_1.1.1295.0_x64__8wekyb3d8bbwe       1.1.1295.0
Webp Image Extensions                                 MSIX\Microsoft.WebpImageExtension_1.1.1711.0_x64__8wekyb3d8bbwe       1.1.1711.0
Dev Home                                              Microsoft.DevHome                                                     0.1500.533.0      0.1501.533.0     winget
Microsoft Photos                                      MSIX\Microsoft.Windows.Photos_2024.11070.3017.0_x64__8wekyb3d8bbwe    2024.11070.3017.0
Windows Clock                                         MSIX\Microsoft.WindowsAlarms_1.0.191.0_x64__8wekyb3d8bbwe             1.0.191.0
WindowsAppRuntime.1.2                                 MSIX\Microsoft.WindowsAppRuntime.1.2_2000.802.31.0_x64__8wekyb3d8bbwe 2000.802.31.0
WindowsAppRuntime.1.2                                 MSIX\Microsoft.WindowsAppRuntime.1.2_2000.802.31.0_x86__8wekyb3d8bbwe 2000.802.31.0
WindowsAppRuntime.1.3                                 MSIX\Microsoft.WindowsAppRuntime.1.3_3000.934.1904.0_x64__8wekyb3d8b… 3000.934.1904.0
WindowsAppRuntime.1.3                                 MSIX\Microsoft.WindowsAppRuntime.1.3_3000.934.1904.0_x86__8wekyb3d8b… 3000.934.1904.0
WindowsAppRuntime.1.4                                 MSIX\Microsoft.WindowsAppRuntime.1.4_4000.1227.1637.0_x64__8wekyb3d8… 4000.1227.1637.0
WindowsAppRuntime.1.4                                 MSIX\Microsoft.WindowsAppRuntime.1.4_4000.1227.1637.0_x86__8wekyb3d8… 4000.1227.1637.0
WindowsAppRuntime.1.5                                 MSIX\Microsoft.WindowsAppRuntime.1.5_5001.159.55.0_x64__8wekyb3d8bbwe 5001.159.55.0
WindowsAppRuntime.1.5                                 MSIX\Microsoft.WindowsAppRuntime.1.5_5001.159.55.0_x86__8wekyb3d8bbwe 5001.159.55.0
Windows Calculator                                    MSIX\Microsoft.WindowsCalculator_11.2405.2.0_x64__8wekyb3d8bbwe       11.2405.2.0
Windows Camera                                        MSIX\Microsoft.WindowsCamera_2024.2405.19.0_x64__8wekyb3d8bbwe        2024.2405.19.0
Feedback Hub                                          MSIX\Microsoft.WindowsFeedbackHub_1.2405.21481.0_x64__8wekyb3d8bbwe   1.2405.21481.0
Windows Maps                                          MSIX\Microsoft.WindowsMaps_1.0.62.0_x64__8wekyb3d8bbwe                1.0.62.0
Windows Notepad                                       MSIX\Microsoft.WindowsNotepad_11.2405.13.0_x64__8wekyb3d8bbwe         11.2405.13.0
Windows Sound Recorder                                MSIX\Microsoft.WindowsSoundRecorder_1.0.78.0_x64__8wekyb3d8bbwe       1.0.78.0
Microsoft Store                                       MSIX\Microsoft.WindowsStore_22405.1401.9.0_x64__8wekyb3d8bbwe         22405.1401.9.0
Windows Terminal                                      Microsoft.WindowsTerminal                                             1.20.11381.0      1.20.11781.0     winget
Windows Package Manager Source (winget)               MSIX\Microsoft.Winget.Source_2024.706.516.19_neutral__8wekyb3d8bbwe   2024.706.516.19
Xbox TCUI                                             MSIX\Microsoft.Xbox.TCUI_1.24.10001.0_x64__8wekyb3d8bbwe              1.24.10001.0
Xbox Game Bar Plugin                                  MSIX\Microsoft.XboxGameOverlay_1.54.4001.0_x64__8wekyb3d8bbwe         1.54.4001.0
Game Bar                                              MSIX\Microsoft.XboxGamingOverlay_7.124.5142.0_x64__8wekyb3d8bbwe      7.124.5142.0
Xbox Identity Provider                                MSIX\Microsoft.XboxIdentityProvider_12.113.31003.0_x64__8wekyb3d8bbwe 12.113.31003.0
Xbox Game Speech Window                               MSIX\Microsoft.XboxSpeechToTextOverlay_1.21.13002.0_x64__8wekyb3d8bb… 1.21.13002.0
Phone Link                                            MSIX\Microsoft.YourPhone_0.24061.93.0_x64__8wekyb3d8bbwe              0.24061.93.0
Windows Media Player                                  MSIX\Microsoft.ZuneMusic_11.2405.8.0_x64__8wekyb3d8bbwe               11.2405.8.0
Movies & TV                                           MSIX\Microsoft.ZuneVideo_10.22091.10061.0_x64__8wekyb3d8bbwe          10.22091.10061.0
Quick Assist                                          MSIX\MicrosoftCorporationII.QuickAssist_2.0.30.0_x64__8wekyb3d8bbwe   2.0.30.0
Windows Web Experience Pack                           MSIX\MicrosoftWindows.Client.WebExperience_524.13200.30.0_x64__cw5n1… 524.13200.30.0
Mail and Calendar                                     MSIX\microsoft.windowscommunicationsapps_16005.14326.21970.0_x64__8w… 16005.14326.2197…
Steps to reproduce
  1. Move the Winget package cache and temporary directories to a Dev-Drive.
  2. Run winget list.
Expected behavior

winget list should display a list of installed packages without unusual prefixes and should allow for updating these packages.

Actual behavior

winget list shows some packages with prefixes like MSIX/ or ARP/ (something I haven't seen before), and these packages cannot be updated.

Environment
> winget --info
Windows Package Manager v1.8.1791
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.3810
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1791.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
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
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported winget list behavior after moving the package cache and temporary directories to a Dev-Drive, comparing default-installed packages with VS Code. Done means identifying whether the prefixes and inability to update are caused by that relocation and documenting or fixing the affected package handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.