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
12.62k stars 439 forks source link

[BUG] Microsofr VC++ Package issue #1964

Closed Lemon7ProPlus closed 4 months ago

Lemon7ProPlus commented 7 months ago

Please confirm these before moving forward

Describe your issue

I install the both archtechiture x86/x64 of VC++2015-2024 package, but when I update the package of the X86 archtechiture , WingetUI gives the wrong PACKAGE ID as picture P1 shows. I also meet this issue in the old version (WingetUI 2.0), but i can choose the version and architecture manully to update the package corect. When I use the system winget in Powershell, the package ID is correct as picter P2 show. The log shows that the embed Winget gets the wrong package ID.

Steps to reproduce the issue

No response

WingetUI Log

N/A

Package Managers Logs

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:35] Chocolatey ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: D:\app\scoop\apps\wingetui\current\choco-cli\choco.exe
█  Arguments:  source list
Chocolatey v2.2.2
Directory 'D:\app\scoop\apps\wingetui\current\wingetui\choco-cli\lib' does not exist.
chocolatey - https://community.chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
[2024/3/15 23:18:35] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:35] PowerShell ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
█  Arguments: -NoProfile -Command Get-PSRepository
Name                      InstallationPolicy   SourceLocation                                                          
----                      ------------------   --------------                                                          
PSGallery                 Untrusted            https://www.powershellgallery.com/api/v2                                
[2024/3/15 23:18:35] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:35] Winget ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: D:\app\scoop\apps\wingetui\current\PackageEngine\Managers\winget-cli_x64\winget.exe
█  Arguments:  source list
Name    Argument
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget  https://cdn.winget.microsoft.com/cache
[2024/3/15 23:18:35] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:36] Scoop ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
█  Arguments: -NoProfile -ExecutionPolicy Bypass -Command scoop bucket list
Name         Source                                     Updated            Manifests
----         ------                                     -------            ---------
dodorz       https://github.com/dodorz/scoop            2024/3/14 18:30:46         0
dorado       https://github.com/chawyehsu/dorado        2024/3/14 8:13:00        256
echo         https://github.com/echoiron/echo-scoop     2024/3/14 10:09:55        99
extras       https://github.com/ScoopInstaller/Extras   2024/3/14 16:29:46      1993
java         https://github.com/ScoopInstaller/Java     2024/3/13 16:16:56       270
main         https://github.com/ScoopInstaller/Main     2024/3/14 16:26:46      1310
Scoop-Nriver https://github.com/nriver/Scoop-Nriver     2024/3/12 9:58:30          3
versions     https://github.com/ScoopInstaller/Versions 2024/3/14 16:30:10       444
[2024/3/15 23:18:36] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:36] Winget ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: D:\app\scoop\apps\wingetui\current\PackageEngine\Managers\winget-cli_x64\winget.exe
█  Arguments:  source list
Name    Argument
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget  https://cdn.winget.microsoft.com/cache
[2024/3/15 23:18:36] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:36] .NET Tool ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: C:\Program Files\dotnet\dotnet.exe
█  Arguments: tool list --global
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'tool' does not exist.
  * You intended to execute a .NET SDK command:
      No .NET SDKs were found.
Download a .NET SDK:
https://aka.ms/dotnet/download
Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
[2024/3/15 23:18:36] Exit Code: -2147450735
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:37] Chocolatey ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: D:\app\scoop\apps\wingetui\current\choco-cli\choco.exe
█  Arguments:  source list
Chocolatey v2.2.2
Directory 'D:\app\scoop\apps\wingetui\current\wingetui\choco-cli\lib' does not exist.
chocolatey - https://community.chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
[2024/3/15 23:18:37] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:37] Scoop ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
█  Arguments: -NoProfile -ExecutionPolicy Bypass -Command scoop list
Installed apps:
Name             Version            Source       Updated             Info
----             -------            ------       -------             ----
7zip             23.01              main         2024-01-26 23:42:23     
aria2            1.37.0-1           main         2024-01-26 23:52:21     
bbdown           1.6.1              main         2024-01-27 03:41:33     
clink            1.6.8              main         2024-03-08 19:01:00     
cmake            3.28.3             main         2024-02-07 11:07:47     
crystaldiskinfo  9.2.3              extras       2024-02-21 01:31:54     
ffmpeg           6.1.1              main         2024-01-26 23:52:57     
geekuninstaller  1.5.2.165          extras       2024-01-26 23:53:00     
hwmonitor        1.53               extras       2024-02-21 00:24:34     
innounp          0.50               main         2024-01-26 23:43:25     
keepassxc        2.7.7              extras       2024-03-11 11:41:36     
lsd              1.0.0              main         2024-02-05 17:44:41     
mingit-busybox   2.44.0             main         2024-02-24 13:59:21     
mingw            13.2.0-rt_v11-rev1 main         2024-01-26 23:54:08     
mpv              0.37.0             extras       2024-01-26 23:54:18     
n-m3u8dl-cli     3.0.2              main         2024-01-26 23:58:02     
obs-studio       30.1               extras       2024-03-13 10:24:51     
officetoolplus   10.8.5.0           dorado       2024-02-27 19:51:45     
openjdk17        17.0.2-8           java         2024-02-06 02:11:50     
playnite         10.32              extras       2024-02-06 02:08:51     
pot              2.7.9              dorado       2024-03-03 17:00:59     
python           3.12.2             main         2024-02-07 11:12:01     
qimgv            1.0.2              extras       2024-01-26 23:59:50     
rufus            4.4                extras       2024-01-26 23:59:54     
rustup-gnu       1.27.0             main         2024-03-12 16:51:38     
scoop-completion 0.3.0              dodorz       2024-02-14 22:56:37     
scoop-search     1.4.1              main         2024-02-13 22:22:19     
starship         1.17.1             main         2024-01-27 00:03:25     
stirling-pdf     0.22.2             extras       2024-03-11 11:40:51     
streamlink       6.7.0-1            extras       2024-03-10 18:24:15     
sudo             0.2020.01.26       main         2024-01-26 23:43:00     
sumatrapdf       3.5.2              extras       2024-01-28 22:58:51     
syncthing        1.27.4             main         2024-03-05 18:51:43     
trafficmonitor   1.84.1             extras       2024-01-27 00:03:45     
trilium-cn       0.63.3_20240312    Scoop-Nriver 2024-03-12 16:54:17     
tssh             0.1.18             main         2024-01-28 23:56:25     
ventoy           1.0.97             extras       2024-01-27 00:04:28     
vscode           1.87.2             extras       2024-03-13 10:24:15     
wingetui         3.0.0              extras       2024-03-14 19:08:23     
winscp           6.3.2              extras       2024-03-13 10:23:38     
wixtoolset       3.14               main         2024-02-23 22:18:14     
wiztree          4.19               extras       2024-03-05 18:51:28     
yt-dlp           2024.03.10         main         2024-03-11 11:40:07     
zoom             5.17.11.34827      extras       2024-03-09 20:01:26     
zotero           6.0.36             extras       2024-03-14 19:01:00     
[2024/3/15 23:18:37] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:37] Scoop ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
█  Arguments: -NoProfile -ExecutionPolicy Bypass -Command scoop list
Installed apps:
Name             Version            Source       Updated             Info
----             -------            ------       -------             ----
7zip             23.01              main         2024-01-26 23:42:23     
aria2            1.37.0-1           main         2024-01-26 23:52:21     
bbdown           1.6.1              main         2024-01-27 03:41:33     
clink            1.6.8              main         2024-03-08 19:01:00     
cmake            3.28.3             main         2024-02-07 11:07:47     
crystaldiskinfo  9.2.3              extras       2024-02-21 01:31:54     
ffmpeg           6.1.1              main         2024-01-26 23:52:57     
geekuninstaller  1.5.2.165          extras       2024-01-26 23:53:00     
hwmonitor        1.53               extras       2024-02-21 00:24:34     
innounp          0.50               main         2024-01-26 23:43:25     
keepassxc        2.7.7              extras       2024-03-11 11:41:36     
lsd              1.0.0              main         2024-02-05 17:44:41     
mingit-busybox   2.44.0             main         2024-02-24 13:59:21     
mingw            13.2.0-rt_v11-rev1 main         2024-01-26 23:54:08     
mpv              0.37.0             extras       2024-01-26 23:54:18     
n-m3u8dl-cli     3.0.2              main         2024-01-26 23:58:02     
obs-studio       30.1               extras       2024-03-13 10:24:51     
officetoolplus   10.8.5.0           dorado       2024-02-27 19:51:45     
openjdk17        17.0.2-8           java         2024-02-06 02:11:50     
playnite         10.32              extras       2024-02-06 02:08:51     
pot              2.7.9              dorado       2024-03-03 17:00:59     
python           3.12.2             main         2024-02-07 11:12:01     
qimgv            1.0.2              extras       2024-01-26 23:59:50     
rufus            4.4                extras       2024-01-26 23:59:54     
rustup-gnu       1.27.0             main         2024-03-12 16:51:38     
scoop-completion 0.3.0              dodorz       2024-02-14 22:56:37     
scoop-search     1.4.1              main         2024-02-13 22:22:19     
starship         1.17.1             main         2024-01-27 00:03:25     
stirling-pdf     0.22.2             extras       2024-03-11 11:40:51     
streamlink       6.7.0-1            extras       2024-03-10 18:24:15     
sudo             0.2020.01.26       main         2024-01-26 23:43:00     
sumatrapdf       3.5.2              extras       2024-01-28 22:58:51     
syncthing        1.27.4             main         2024-03-05 18:51:43     
trafficmonitor   1.84.1             extras       2024-01-27 00:03:45     
trilium-cn       0.63.3_20240312    Scoop-Nriver 2024-03-12 16:54:17     
tssh             0.1.18             main         2024-01-28 23:56:25     
ventoy           1.0.97             extras       2024-01-27 00:04:28     
vscode           1.87.2             extras       2024-03-13 10:24:15     
wingetui         3.0.0              extras       2024-03-14 19:08:23     
winscp           6.3.2              extras       2024-03-13 10:23:38     
wixtoolset       3.14               main         2024-02-23 22:18:14     
wiztree          4.19               extras       2024-03-05 18:51:28     
yt-dlp           2024.03.10         main         2024-03-11 11:40:07     
zoom             5.17.11.34827      extras       2024-03-09 20:01:26     
zotero           6.0.36             extras       2024-03-14 19:01:00     
[2024/3/15 23:18:37] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:38] PowerShell ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
█  Arguments: -NoProfile -Command Get-PSRepository
Name                      InstallationPolicy   SourceLocation                                                          
----                      ------------------   --------------                                                          
PSGallery                 Untrusted            https://www.powershellgallery.com/api/v2                                
[2024/3/15 23:18:38] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:38] Scoop ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
█  Arguments: -NoProfile -ExecutionPolicy Bypass -Command scoop bucket list
Name         Source                                     Updated            Manifests
----         ------                                     -------            ---------
dodorz       https://github.com/dodorz/scoop            2024/3/14 18:30:46         0
dorado       https://github.com/chawyehsu/dorado        2024/3/14 8:13:00        256
echo         https://github.com/echoiron/echo-scoop     2024/3/14 10:09:55        99
extras       https://github.com/ScoopInstaller/Extras   2024/3/14 16:29:46      1993
java         https://github.com/ScoopInstaller/Java     2024/3/13 16:16:56       270
main         https://github.com/ScoopInstaller/Main     2024/3/14 16:26:46      1310
Scoop-Nriver https://github.com/nriver/Scoop-Nriver     2024/3/12 9:58:30          3
versions     https://github.com/ScoopInstaller/Versions 2024/3/14 16:30:10       444
[2024/3/15 23:18:38] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:38] PowerShell ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
█  Arguments: 
Windows PowerShell
��Ȩ���У�C�� Microsoft Corporation����������Ȩ����
��װ���µ� PowerShell���˽��¹��ܺ͸Ľ���https://aka.ms/PSWindows
PS C:\Windows\system32> 
PS C:\Windows\system32>                 function Test-GalleryModuleUpdate {
>>                     param (
>>                         [Parameter(Mandatory,ValueFromPipelineByPropertyName)] [string] $Name,
>>                         [Parameter(Mandatory,ValueFromPipelineByPropertyName)] [version] $Version,
>>                         [Parameter(Mandatory,ValueFromPipelineByPropertyName)] [string] $Repository,
>>                         [switch] $NeedUpdateOnly
>>                     )
>>                     process {
>>                         $URLs = @{}
>>                         @(Get-PSRepository).ForEach({$URLs[$_.Name] = $_.SourceLocation})
>>                         $page = Invoke-WebRequest -Uri ($URLs[$Repository] + "/package/$Name") -UseBasicParsing -Maximum 0 -ea Ignore
>>                         [version]$latest = Split-Path -Path ($page.Headers.Location -replace "$Name." -replace ".nupkg") -Leaf
>>                         $needsupdate = $Latest -gt $Version
>>                         if ($needsupdate) {
>>                                 Write-Output($Name + "|" + $Version.ToString() + "|" + $Latest.ToString() + "|" + $Repository)
>>                         }
>>                     }
>>                 }
>>                 Get-InstalledModule | Test-GalleryModuleUpdate
>>                 exit
>>                 
[2024/3/15 23:18:38] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:38] PowerShell ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
█  Arguments: -NoProfile -Command Get-InstalledModule
[2024/3/15 23:18:38] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:39] Winget ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: D:\app\scoop\apps\wingetui\current\PackageEngine\Managers\winget-cli_x64\winget.exe
█  Arguments:  update --include-unknown  --accept-source-agreements
   \ 
  ███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  1024 KB / 9.50 MB
  ██████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  2.00 MB / 9.50 MB
  █████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  3.00 MB / 9.50 MB
  ████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  4.00 MB / 9.50 MB
  ███████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  5.00 MB / 9.50 MB
  ██████████████████▒▒▒▒▒▒▒▒▒▒▒▒  6.00 MB / 9.50 MB
  ██████████████████████▒▒▒▒▒▒▒▒  7.00 MB / 9.50 MB
  █████████████████████████▒▒▒▒▒  8.00 MB / 9.50 MB
  ████████████████████████████▒▒  9.00 MB / 9.50 MB
  ██████████████████████████████  9.50 MB / 9.50 MB
   - 
   | 
Name                                                    Id                           Version       Available     Source
-----------------------------------------------------------------------------------------------------------------------
Microsoft Visual C++ 2015-2022 Redistributable (x86) -… Microsoft.VCRedist.2015+.x64 14.38.33135.0 14.40.33617.1 winget
1 upgrades available.
[2024/3/15 23:18:39] Exit Code: 0
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀ [2024/3/15 23:18:42] Scoop ▀▀▀▀▀▀▀▀▀▀▀
█  Executable: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
█  Arguments: -NoProfile -ExecutionPolicy Bypass -Command scoop status
WARN  Scoop bucket(s) out of date. Run 'scoop update' to get the latest changes.
[2024/3/15 23:18:42] Exit Code: 0

Relevant information

No response

Screenshots and videos

P1 P2

ScrambledBrain commented 6 months ago

Hi, I also have this issue, that WingetUI shows me an update for this VCRedist version, but the mismatch is exactly at the opposite: x64 package update is listed (which is correct according to appwiz.cpl), but x86 package is linked as possible update.

Screenshots:

2024-03-29 12_46_22 - WingetUI 2024-03-29 12_50_27 - Programme und Features

I've updated the package manually which worked: winget.exe update --id Microsoft.VCRedist.2015+.x64 --exact --accept-source-agreements --silent --disable-interactivity --accept-package-agreements --force --include-unknown

marticliment commented 4 months ago

This issue has been fixed on a previous commit.

Changes will be effective with UniGetUI 3.1.0