microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.68k stars 4.53k forks source link

[Package Issue]: Zoom.Zoom Incorrect Installed Version Reported #88334

Open ChrisWarrenCodux opened 1 year ago

ChrisWarrenCodux commented 1 year ago

Please confirm these before moving forward

Category of the issue

No applicable update found.

Brief description of your issue

When Zoom.Zoom in installed in the Machine Scope it does not correctly report the Installed Version, instead it reports its less than ( > ) the currently available version

Problematic Machine Scope Install

winget list zoom.zoom
Name        Id        Version
Zoom(64bit) Zoom.Zoom > 5.12.10137

Compared to the User Scope

Name Id        Version   Available
-----------------------------------
Zoom Zoom.Zoom 5.12.8964 5.12.10137

This causes problems as Winget Update isn't able to detect upgrades as the Installed version will always match the Available version.

I suspect specify the ProductCode or UpgradeCode is causing this problem within Zoom.Zoom.installer.yaml

  AppsAndFeaturesEntries:
  - DisplayName: Zoom(64bit)
    DisplayVersion: 5.12.6 (10137)
    ProductCode: '{8A24B3AE-F70D-4FA5-8A8D-AB84595A891C}'
    UpgradeCode: '{C819B794-A45C-4F27-9860-0C86492A52CC}'

Steps to reproduce

Installing an older version of Zoom

Install an older version of Zoom.Zoom will cause this issue to occur but only in the Machine Scope winget install zoom.zoom --silent --scope machine --version 5.12.8964

Actual behavior

This should be the same as the User Install an older version of Zoom.Zoom winget install zoom.zoom --silent --scope machine --version 5.12.8964 Run Winget List

winget list zoom.zoom
Name        Id        Version
Zoom(64bit) Zoom.Zoom > 5.12.10137

Expected behavior

This should behave exactly the same as the User Scope version Install an older version of Zoom.Zoom winget install zoom.zoom --silent --scope user --version 5.12.8964 Run Winget List

winget list zoom.zoom
Name        Id        Version
Zoom(64bit) Zoom.Zoom > 5.12.10137

Environment

C:\Users\******>winget --info
Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19043.2130
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

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

Environment:
- Windows 10 Pro 21H2 Build 19044.1706
- WinGet

Screenshots and Logs

When installed in User Scope image image

When installed in Machine Scope image image Note: The correct version of Zoom is installed image

mdanish-kh commented 1 year ago

It appears the problem may have been introduced in version 5.12.8964 manifests/z/Zoom/Zoom/5.12.8964/Zoom.Zoom.installer.yaml.

~ winget install Zoom.Zoom --version 5.11.8425
Found Zoom [Zoom.Zoom] Version 5.11.8425
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://cdn.zoom.us/prod/5.11.11.8425/x64/ZoomInstallerFull.msi
  ██████████████████████████████  69.9 MB / 69.9 MB
Successfully verified installer hash
Starting package install...
Successfully installed

~ winget list Zoom.Zoom
Name        Id        Version     Available  Source
---------------------------------------------------
Zoom(64bit) Zoom.Zoom < 5.12.8964 5.12.10137 winget

~ winget install Zoom.Zoom --version 5.12.8964 --scope machine
Found Zoom [Zoom.Zoom] Version 5.12.8964
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://cdn.zoom.us/prod/5.12.0.8964/x64/ZoomInstallerFull.msi
  ██████████████████████████████  79.7 MB / 79.7 MB
Successfully verified installer hash
Starting package install...
Successfully installed

~ winget list Zoom.Zoom
Name        Id        Version      Source
------------------------------------------
Zoom(64bit) Zoom.Zoom > 5.12.10137 winget
ChrisWarrenCodux commented 1 year ago

The older version above still doesn't accurately report the correctly installed version.

Installed: 5.11.8425 vs Reported: < 5.12.8964

absmith82 commented 1 year ago

The new version still does this.
Name Id Version Source

Zoom(64bit) Zoom.Zoom > 5.14.2.14578 winget

This becomes problematic when writing scripts to test for the correct version due to every other program displaying in the expected behavior format.

rvtdadmin commented 1 year ago

This is still an issue or has been introduced again in a newer package.

All my workstations are stuck on 5.15.1.7948

Winget reports the current version is installed but it is not.

image

image