microsoft / microsoft/winget-cli

`winget upgrade Microsoft.Teams` fails to upgrade MSTeams

Open
#3,063 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Matching Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

winget upgrade Microsoft.Teams fails with the following error:

found Microsoft Teams [Microsoft.Teams] Version 1.6.00.376
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 1638
Installer log is available at: C:\Users\asilverman\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.Teams.1.6.00.376-2023-03-10-11-58-38.262.log
Another version of this application is already installed.

Contents of C:\Users\asilverman\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.Teams.1.6.00.376-2023-03-10-11-58-38.262.log

MSI (s) (80:8C) [11:57:16:903]: Product: Teams Machine-Wide Installer -- Configuration failed.

MSI (s) (80:8C) [11:57:16:903]: Windows Installer reconfigured the product. Product Name: Teams Machine-Wide Installer. Product Version: 1.6.0.376. Product Language: 1033. Manufacturer: Microsoft Corporation. Reconfiguration success or error status: 1638.

Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
{731F6BAA-A986-45A4-8936-7C3AAAAA760B}
Steps to reproduce

Run winget upgrade Microsoft.Teams to upgrade from versions 1.2.0.19260 -> 1.6.00.376

Expected behavior

upgrade should succeed...

Actual behavior

upgrade fails with an error code but upgrade takes place

Environment
[winget --info]

winget --info
Windows Package Manager v1.4.10173
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.1344
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0

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

User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json

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

[winget show Microsoft.Teams]

winget show Microsoft.Teams
Found Microsoft Teams [Microsoft.Teams]
Version: 1.6.00.376
Publisher: Microsoft Corporation
Publisher Url: https://www.microsoft.com/en-us
Publisher Support Url: https://support.microsoft.com/en-us/teams
Author: Microsoft Corporation
Moniker: teams
Description: Make amazing things happen together at home, work, and school.
Homepage: https://www.microsoft.com/en-us/microsoft-teams/group-chat-software
License: Proprietary
License Url: https://www.microsoft.com/en-us/legal/terms-of-use
Privacy Url: https://privacy.microsoft.com/en-us/privacystatement
Copyright: (c) Microsoft Corporation. All rights reserved.
Copyright Url: https://www.microsoft.com/en-us/legal/terms-of-use
Release Notes Url: https://support.microsoft.com/en-us/office/what-s-new-in-microsoft-teams-d7092a6d-c896-424c-b362-a472d5f105de
Tags:
  call
  calling
  chat
  collaborate
  collaboration
  conferencing
  meet
  meetings
  team
  teams
  video
  video-conferencing
  voice
  voip
  webinars
Installer:
  Installer Type: exe
  Installer Url: https://statics.teams.cdn.office.net/production-windows-x64/1.6.00.376/Teams_windows_x64.exe
  Installer SHA256: 09c4f7bb78a1ec44132214b6a7467dd7c3c9f176a9176cf9c370c9a67530d44b

Consider the following flow (below) as well. Upgrade all detects an upgrade but upgrading each individual item does not... (very weird).

PS C:\Users\asilverman\source\AzureUX-Deployments> winget upgrade --all
Name                             Id                     Version     Available  Source
-------------------------------------------------------------------------------------
Microsoft .NET SDK 5.0.408 (x64) Microsoft.DotNet.SDK.6 < 6.0.105   6.0.406    winget
Teams Machine-Wide Installer     Microsoft.Teams        1.2.0.19260 1.6.00.376 winget
2 upgrades available.

(1/2) Found Microsoft .NET SDK 6.0 [Microsoft.DotNet.SDK.6] Version 6.0.406
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://dotnetcli.azureedge.net/dotnet/Sdk/6.0.406/dotnet-sdk-6.0.406-win-x64.exe
  █████████████▋                  90.0 MB /  197 MB
Package download canceled.

Cancelled
PS C:\Users\asilverman\source\AzureUX-Deployments> winget upgrade Microsoft.DotNet.SDK.6
No applicable upgrade found.
PS C:\Users\asilverman\source\AzureUX-Deployments> winget upgrade Microsoft.Teams
No installed package found matching input criteria.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior with winget upgrade Microsoft.Teams and winget upgrade --all, then inspect the referenced installer log under DiagOutputDir. Compare the package-detection and upgrade paths; done means the individual Teams upgrade is detected correctly and completes without the misleading 1638 failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.