Brief description of your issue
When installing Microsoft Teams, it should be pinned through RequireExplicitUpgrade as implemented in #1795 and released in v1.4.2161-preview
Installing teams and changing the version to trigger an upgrade reveals that the package is not requiring explicit upgrade.
https://github.com/microsoft/winget-pkgs/blob/master/manifests/m/Microsoft/Teams/1.5.00.21668/Microsoft.Teams.installer.yaml#L8
Steps to reproduce
- Uninstall Microsoft Teams
- Reinstall Microsoft Teams using
winget install Microsoft.Teams --scope=machine --source=winget
- Modify the ARP entry of
Teams Machine-Wide Installer to have DisplayVersion be a lower value, so that an upgrade would be triggered. Be sure to only change the DisplayVersion
- Run
winget upgrade --all
Expected behavior
Teams to be pinned by default and not upgrade without explicit upgrade - as it was installed with a manifest that stated explicit upgrade was required
Actual behavior
PS D:\Git\winget-pkgs> winget uninstall Microsoft.Teams
Found Microsoft Teams [Microsoft.Teams]
Starting package uninstall...
Successfully uninstalled
PS D:\Git\winget-pkgs> winget install Microsoft.Teams --scope=machine -s=winget
Found Microsoft Teams [Microsoft.Teams] Version 1.5.00.21668
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://statics.teams.cdn.office.net/production-windows-x64/1.5.00.21668/Teams_windows_x64.msi
██████████████████████████████ 124 MB / 124 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS D:\Git\winget-pkgs> winget list teams
Name Id Version
--------------------------------------------------------
Teams Machine-Wide Installer Microsoft.Teams 1.5.0.21668
// Registry Modified Manually
PS D:\Git\winget-pkgs> winget list teams
Name Id Version Available
---------------------------------------------------------------------
Teams Machine-Wide Installer Microsoft.Teams 1.5.0.21667 1.5.00.21668
PS D:\Git\winget-pkgs> winget upgrade --all
Name Id Version Available
-----------------------------------------------------------------------------------------------------------------------------------
Microsoft .NET SDK 6.0.304 (x64) Microsoft.DotNet.SDK.6 6.0.304 6.0.401
|
Teams Machine-Wide Installer Microsoft.Teams 1.5.0.21667 1.5.00.21668
Windows Software Development Kit - Windows 10.0.22000.832 Microsoft.WindowsSDK 10.0.22000.832 10.0.22621.1
Microsoft .NET SDK 6.0.203 (x64) Microsoft.DotNet.SDK.6 6.0.203 6.0.401
9 upgrades available.
1 package(s) have version numbers that cannot be determined. Use "--include-unknown" to see all results.
(1/5) Found Microsoft .NET SDK 6.0 [Microsoft.DotNet.SDK.6] Version 6.0.401
|
(5/5) Found Microsoft Teams [Microsoft.Teams] Version 1.5.00.21668
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://statics.teams.cdn.office.net/production-windows-x64/1.5.00.21668/Teams_windows_x64.msi
██████████████████████████████ 124 MB / 124 MB
Successfully verified installer hash
Starting package install...
Successfully installed
1 package(s) have version numbers that cannot be determined. Use "--include-unknown" to see all results.
Note in the Teams Install.log that it shows the manifest has RequireExplicitUpgrade: True.
UpgradeLog.zip; Note- Had to zip the upgrade log since it was too big to upload raw
Environment
PS D:\Git\winget-pkgs> winget --info
Windows Package Manager (Preview) v1.4.2161-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19044.2006
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.2161.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
Brief description of your issue
When installing Microsoft Teams, it should be pinned through
RequireExplicitUpgradeas implemented in #1795 and released in v1.4.2161-previewInstalling teams and changing the version to trigger an upgrade reveals that the package is not requiring explicit upgrade.
https://github.com/microsoft/winget-pkgs/blob/master/manifests/m/Microsoft/Teams/1.5.00.21668/Microsoft.Teams.installer.yaml#L8
Steps to reproduce
winget install Microsoft.Teams --scope=machine --source=wingetTeams Machine-Wide Installerto have DisplayVersion be a lower value, so that an upgrade would be triggered. Be sure to only change the DisplayVersionwinget upgrade --allExpected behavior
Teams to be pinned by default and not upgrade without explicit upgrade - as it was installed with a manifest that stated explicit upgrade was required
Actual behavior
Note in the Teams Install.log that it shows the manifest has
RequireExplicitUpgrade: True.UpgradeLog.zip; Note- Had to zip the upgrade log since it was too big to upload raw
Environment