MSIX Framework package installed via winget cannot be uninstalled via winget
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start by reproducing the supplied winget uninstall command and reviewing the non-elevated lookup path mentioned in the issue, especially FindPackagesByPackageFamily. Then compare it with the elevated lookup behavior for multiple MSIX identities under one package family. Done means WinGet either removes the intended WASDK package or reports a clear unsupported or ambiguous-package error.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Relevant area(s)
WinGet CLI
Relevant command(s)
winget uninstall
Brief description of your issue
I was trying to use winget to install the 2.0.1 Windows App SDK package for a test automation scenario. When testing uninstall with the private version of the manifest, winget reports success, but the packages are still installed.
From an end-user perspective, I would expect a piece of software that I installed with winget to also be uninstallable by winget.
WinGet’s non-elevated path seems to use FindPackagesByPackageFamily(..., PACKAGE_FILTER_HEAD, ...), which does not resolve this framework package. Also, elevated lookup can encounter multiple packages under the shared package family. The installer deploys several MSIX identities (framework, Main, Singleton, and DDLM), while the WinGet manifest exposes only one PackageFamilyName.
See also #6525
Steps to reproduce
winget uninstall --manifest C:\data\test\wasdk-2.0.1-corrected --version 2.0.1 --disable-interactivity --silent --verbose-logs
where the corrected manifest has this edit:
diff --git a/manifests/m/Microsoft/WindowsAppRuntime/2/0/2.0.1/Microsoft.WindowsAppRuntime.2.0.installer.yaml b/manifests/m/Microsoft/WindowsAppRuntime/2/0/2.0.1/Microsoft.WindowsAppRuntime.2.0.installer.yaml
index 399985db33e..baf7279229e 100644
--- a/manifests/m/Microsoft/WindowsAppRuntime/2/0/2.0.1/Microsoft.WindowsAppRuntime.2.0.installer.yaml
+++ b/manifests/m/Microsoft/WindowsAppRuntime/2/0/2.0.1/Microsoft.WindowsAppRuntime.2.0.installer.yaml
@@ -11,7 +11,7 @@ InstallerSwitches:
Silent: --quiet
SilentWithProgress: --quiet
UpgradeBehavior: install
-PackageFamilyName: Microsoft.WindowsAppRuntime.2.0_8wekyb3d8bbwe
+PackageFamilyName: Microsoft.WindowsAppRuntime.2_8wekyb3d8bbwe
AppsAndFeaturesEntries:
- DisplayName: WindowsAppRuntime.2.0
DisplayVersion: 2.0.1
Expected behavior
WinGet removes WASDK 2.0.1, or returns a clear unsupported or ambiguous-package error.
Actual behavior
Found WindowsAppRuntime.2 [Microsoft.WindowsAppRuntime.2]
Starting package uninstall...
Successfully uninstalled
Exit code is 0 , but the package remains installed:
Microsoft.WindowsAppRuntime.2 2.0.1.0 x86
Microsoft.WindowsAppRuntime.2 2.2.0.0 x64
The verbose log contains:
No package found with family name:
microsoft.windowsappruntime.2_8wekyb3d8bbwe
Environment
Windows Package Manager v1.29.290
© 2026 Microsoft. All rights reserved.
Windows: Windows.Desktop v10.0.26689.1002
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.29.289.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
Configuration Modules %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules
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
ConfigurationProcessorPath Disabled
DefaultProxy Disabled
- Ngôn ngữ chính
- C++
- Star
- 26.6k
- Fork
- 1.8k
- Merge trung bình
- 3 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 41
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/winget-cli
-
Issue-Docs Needs-Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
microsoft/winget-cli#6692 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Issue-Docs Possible-Duplicate
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
microsoft/winget-cli#6493 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
WinGetSourceCreator: PackWithMappingFile should verify makeappx.exe exists before invoking itĐang mởIssue-Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/winget-cli#6427 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Issue-Docs msstore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
microsoft/winget-cli#6331 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Command-Source Issue-Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/winget-cli#6148 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của microsoft/winget-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stratum-mining/sv2-tp#167 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Sign up button opens the Sign in page instead of the Sign up page for Enterprise edition serversĐang mởauth bug ui/ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
MerginMaps/mobile#4795 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
HarperFast/rocksdb-js#1118 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
26.04 bug dark-mode Easy Hack impress symptom: visual
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CollaboraOnline/online#16421 · 1 bình luận ·