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
10.62k stars 348 forks source link

[BUG] Winget package update: "No installed package found matching input criteria" #2386

Closed stamminator closed 2 weeks ago

stamminator commented 2 weeks ago

Please confirm these before moving forward

UniGetUI Version

3.1.0-beta2

Windows version, edition and architecture

Windows 11 Pro 23H2 22631.3737

Describe your issue

When trying to update a Winget package, it fails with the message "No installed package found matching input criteria". Running as admin makes no difference.

Steps to reproduce the issue

  1. Go to Software Updates screen
  2. Try to update Winget packageId Zoom.Zoom.EXE from 6.1.0 (41135) to 6.1.1 (41705)
  3. Observe the error message

UniGetUI Log

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

Starting package update operation for package id=Zoom.Zoom.EXE with Manager name=Winget
Given installation options are <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=False;Version=;Architecture=;InstallationScope=;InstallationScope=;CustomParameters=;RemoveDataOnUninstall=False>
Process Executable     : C:\Users\jstamm\AppData\Local\Microsoft\WindowsApps\winget.exe
Process Call Arguments :  update --id Zoom.Zoom.EXE --exact --source winget --accept-source-agreements --version 6.1.1 (41705) --silent --disable-interactivity --accept-package-agreements --force --include-unknown
Working Directory      : C:\Users\jstamm
    |    \ 
    | No installed package found matching input criteria.
Process Exit Code      : -1978335212
Process End Time       : 7/2/2024 10:21:07 AM

Package Managers Logs

Manager Winget with version:
Naive WinGet CLI Version: v1.8.1791
Microsoft.WinGet.Client PSModule version: 
Using Native WinGet helper (COM Api)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 7/2/2024 10:20:46 AM
Process end time:   7/2/2024 10:20:46 AM

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\jstamm\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 7/2/2024 10:20:48 AM
Process end time:   7/2/2024 10:20:49 AM

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is ListPackages
Subprocess executable: "C:\Windows\system32\windowspowershell\v1.0\powershell.exe"
Command-line arguments: "-ExecutionPolicy Bypass -NoLogo -NoProfile"
Process start time: 7/2/2024 10:20:48 AM
Process end time:   7/2/2024 10:20:55 AM

-- Process STDIN
 ...

-- Process STDOUT
 ...

-- Process STDERR
  Write-Output : The term 'Write-Output' is not recognized as the name of a cmdlet, function, script file, or 
  operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try 
  again.
  At line:1 char:1
  + Write-Output (Get-Module -Name Microsoft.WinGet.Client).Version
  + ~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Write-Output:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 7/2/2024 10:20:48 AM
Process end time:   7/2/2024 10:20:48 AM

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is ListUpdates
Subprocess executable: "C:\Windows\system32\windowspowershell\v1.0\powershell.exe"
Command-line arguments: "-ExecutionPolicy Bypass -NoLogo -NoProfile"
Process start time: 7/2/2024 10:20:49 AM
Process end time:   7/2/2024 10:20:55 AM

-- Process STDIN
 ...

-- Process STDOUT
 ...

-- Process STDERR
  Write-Output : The term 'Write-Output' is not recognized as the name of a cmdlet, function, script file, or 
  operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try 
  again.
  At line:1 char:1
  + Write-Output (Get-Module -Name Microsoft.WinGet.Client).Version
  + ~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Write-Output:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

Return code: SUCCESS (0)

——————————————————————————————————————————

Relevant information

In case it helps, the install location for Zoom on my machine is C:\Users\jstamm\AppData\Roaming\Zoom\bin\Zoom.exe

My Windows Powershell execution policy is set to Unrestricted

Screenshots and videos

cb9PRm7f0e

marticliment commented 2 weeks ago

Running C:\Users\jstamm\AppData\Local\Microsoft\WindowsApps\winget.exe update --id Zoom.Zoom.EXE --exact --source winget --accept-source-agreements --version 6.1.1 (41705) --silent --disable-interactivity --accept-package-agreements --force --include-unknown does work?

stamminator commented 2 weeks ago

It worked when I enclosed the version string in quotes. Looks like a problem for version numbers that have a space in them.

> C:\Users\jstamm\AppData\Local\Microsoft\WindowsApps\winget.exe update --id Zoom.Zoom.EXE --exact --source winget --accept-source-agreements --version "6.1.1 (41705)" --silent --disable-interactivity --accept-package-agreements --force --include-unknown
Found Zoom Workplace (EXE) [Zoom.Zoom.EXE] Version 6.1.1 (41705)
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://zoom.us/client/6.1.1.41705/ZoomInstallerFull.exe?archType=x64
  ██████████████████████████████   103 MB /  103 MB
Successfully verified installer hash
Starting package install...
Successfully installed