marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
11.93k stars 396 forks source link

[BUG] Uninstall then update uses the wrong version #2506

Closed kirb1984 closed 1 month ago

kirb1984 commented 1 month ago

Please confirm these before moving forward

UniGetUI Version

3.1.0

Windows version, edition, and architecture

Windows 11 Home 22631.3880 x64

Describe your issue

When attempting to update a package with the "Uninstall package, then update it" option, UnigetUI attempts to uninstall the new version of the package, which fails.

Steps to reproduce the issue

  1. Right click a package in the Software Updates category
  2. Select "Uninstall package, then update it"

UniGetUI Log

Irrelevant

Package Managers Logs

Irrelevant

Relevant information

Live output of uninstall is:

Given installation options are <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=False;Version=;Architecture=;InstallationScope=;InstallationScope=;CustomParameters=;RemoveDataOnUninstall=False>
Process Executable     : C:\Users\<username>\AppData\Local\Microsoft\WindowsApps\winget.exe
Process Call Arguments :  uninstall --id yt-dlp.yt-dlp --exact --source winget --accept-source-agreements --version "2024.07.16" --silent --disable-interactivity 
Working Directory      : C:\Users\<username>
    |    | 
    | No version found matching: 2024.07.16
Process Exit Code      : -1978335209
Process End Time       : 17/07/2024 10:24:09

Installed version of yt-dlp is 2024.07.09

Screenshots and videos

No response