microsoft / microsoft/winget-pkgs

[Package Issue]: Cannot uninstall or upgrade Microsoft.Edit 1.2.1

Open
#387,371 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug Needs-Triage
Dominant language
No language data
Stars
11.1k
Forks
9.7k
Avg merge
1h 32m
Merged PRs (30d)
616

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

Microsoft.Edit version 1.2.1 cannot be removed from my system or replaced with version 2.0.0

Steps to reproduce

Version 1.2.1 of Microsoft.Edit is installed and working correctly.

I have tried to update to version 2.0.0 which failed. So I attempted to remove version 1.2.1 which also fails.

I am using UniGetUI as the front-end. I've tried running Interactive and as Admin and the results are the same.

I have tried the Microsoft tool from this page Fix problems that block programs from being installed or removed but it was unable to find Edit.

I also searched through the Registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and couldn't find it.

Actual behavior

When attempting to uninstall the application, it fails with vague errors.

Expected behavior

The software should be properly uninstalled.

Environment
Windows Package Manager v1.28.240
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26200.8655
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.28.240.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%\OneDrive\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
DefaultProxy                              Disabled

[6/12/2026 10:31:40 PM]    __  __      _ ______     __  __  ______
                          / / / /___  (_) ____/__  / /_/ / / /  _/
                         / / / / __ \/ / / __/ _ \/ __/ / / // /
                        / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                        \____/_/ /_/_/\____/\___/\__/\____/___/
                            Welcome to UniGetUI Version 2026.2.0
[6/12/2026 10:31:40 PM]
[6/12/2026 10:31:40 PM] Build 107
[6/12/2026 10:31:40 PM] UI Framework: WinUI 3
Screenshots and Logs
2026-06-12 23:27:58.024 [CORE] WinGet, version [1.28.240], activity [{4BA4E856-ED71-455F-97BE-087713249ABD}]
2026-06-12 23:27:58.024 [CORE] Process: winget.exe[10292], Offset: 00007FFA55A30000
2026-06-12 23:27:58.024 [CORE] OS: Windows.Desktop v10.0.26200.8655
2026-06-12 23:27:58.024 [CORE] Command line Args: "C:\Users\jrdep\AppData\Local\Microsoft\WindowsApps\winget.exe"  uninstall --id "Microsoft.Edit" --exact --source winget --accept-source-agreements --disable-interactivity --version "1.2.1" --silent
2026-06-12 23:27:58.024 [CORE] Package: Microsoft.DesktopAppInstaller v1.28.240.0
2026-06-12 23:27:58.033 [CORE] IsCOMCall:0; Caller: winget-cli
2026-06-12 23:27:58.036 [CLI ] WinGet invoked with arguments: 'uninstall' '--id' 'Microsoft.Edit' '--exact' '--source' 'winget' '--accept-source-agreements' '--disable-interactivity' '--version' '1.2.1' '--silent'
2026-06-12 23:27:58.036 [CLI ] Found subcommand: uninstall
2026-06-12 23:27:58.036 [CLI ] Leaf command to execute: root:uninstall
2026-06-12 23:27:58.036 [CLI ] Executing command: uninstall
2026-06-12 23:27:58.043 [REPO] Named source requested, found: winget
2026-06-12 23:27:58.043 [CLI ] Created authentication arguments. Mode: silent, Account:
2026-06-12 23:27:58.049 [CORE] Examining extension: PFN = Microsoft.Winget.Fonts.Source_8wekyb3d8bbwe, ID = IndexDB
2026-06-12 23:27:58.051 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2026-06-12 23:27:58.051 [CORE] Found matching extension.
2026-06-12 23:27:58.056 [CORE] Examining extension: PFN = Microsoft.Winget.Fonts.Source_8wekyb3d8bbwe, ID = IndexDB
2026-06-12 23:27:58.058 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2026-06-12 23:27:58.058 [CORE] Found matching extension.
2026-06-12 23:27:58.088 [REPO] Opening database for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2026.613.434.32_neutral__8wekyb3d8bbwe\Public\index.db'
2026-06-12 23:27:58.088 [REPO] Opened SQLite Index with version [2.0], last write [2026-06-12 22:33:32.000]
2026-06-12 23:27:59.408 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2026-06-12 23:27:59.410 [REPO] Reading MSI UpgradeCodes
2026-06-12 23:27:59.450 [REPO] Reading MSI UpgradeCodes
2026-06-12 23:28:00.525 [REPO] Opening database for ReadWrite at 'C:\Users\jrdepriest\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2026-06-12 23:28:00.526 [REPO] Opened SQLite Index with version [1.6], last write [2026-06-12 22:37:50.000]
2026-06-12 23:28:01.085 [CLI ] Found one app. App id: Microsoft.Edit App name: Edit
2026-06-12 23:28:01.091 [REPO] Opening database for ReadWrite at 'C:\Users\jrdep\AppData\Local\Microsoft\WinGet\Packages\Microsoft.Edit_Microsoft.Winget.Source_8wekyb3d8bbwe\microsoft.edit_microsoft.winget.source_8wekyb3d8bbwe.db'
2026-06-12 23:28:01.091 [REPO] Opened Portable Index with version [1.0], last write [2025-10-19 13:53:22.000]
2026-06-12 23:28:01.200 [REPO] Opening database for ReadWrite at 'C:\Users\jrdep\AppData\Local\Microsoft\WinGet\Packages\Microsoft.Edit_Microsoft.Winget.Source_8wekyb3d8bbwe\microsoft.edit_microsoft.winget.source_8wekyb3d8bbwe.db'
2026-06-12 23:28:01.201 [REPO] Opened Portable Index with version [1.0], last write [2025-10-19 13:53:22.000]
2026-06-12 23:28:01.201 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\Schema\Portable_1_0\PortableIndexInterface_1_0.cpp(54)\WindowsPackageManager.dll!00007FFA55E0A63D: (caller: 00007FFA55DD634C) Exception(1) tid(5c24) 80070490 Element not found.


2026-06-12 23:28:01.201 [CLI ] Caught wil::ResultException: C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\Schema\Portable_1_0\PortableIndexInterface_1_0.cpp(54)\WindowsPackageManager.dll!00007FFA55E0A63D: (caller: 00007FFA55DD634C) Exception(1) tid(5c24) 80070490 Element not found.


2026-06-12 23:28:01.201 [CLI ] PortableUninstall uninstaller failed: 2147943568
2026-06-12 23:28:01.201 [CLI ] Terminating context: 0x8a150057 at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\UninstallFlow.cpp:1d5
Package uninstall operation for Package=Microsoft.Edit with Manager=Winget
Installation options: <InstallOptions instance (only non-default values are shown)
	OverridesNextLevelOpts: False>
Overriden options: <Scope=;RunAsAdministrator=;WG_SpecifyVersion=;PS_NoScope=False;Pip_BreakSystemPackages=False>
Starting operation...
Executing process with StartInfo:
 - FileName: "C:\Users\jrdep\AppData\Local\Microsoft\WindowsApps\winget.exe"
 - Arguments: "uninstall --id "Microsoft.Edit" --exact --source winget --accept-source-agreements --disable-interactivity --version "1.2.1" --silent"
Start Time: "6/12/2026 11:27:57 PM"
Found Edit [Microsoft.Edit]
Starting package uninstall...
An unexpected error occurred while executing the command: 
0x80070490 : Element not found.
Uninstall failed with exit code: 0x80070490 : Element not found.
End Time: "6/12/2026 11:28:01 PM"
Process return value: "-1978335145" (0x8A150057)
Edit could not be uninstalled

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

Reproduce with the logged winget uninstall --id Microsoft.Edit --exact --source winget --version 1.2.1 --silent command. Start at external/pkg/src/AppInstallerRepositoryCore/Microsoft/Schema/Portable_1_0/PortableIndexInterface_1_0.cpp line 54 and follow the uninstall flow referenced in AppInstallerCLICore/Workflows/UninstallFlow.cpp. Done means the installed portable package can be uninstalled or upgraded without the 0x80070490 error.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.