microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.96k stars 1.43k forks source link

`winget upgrade Microsoft.Teams` fails to upgrade MSTeams #3063

Open asilverman opened 1 year ago

asilverman commented 1 year ago

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.
denelon commented 1 year ago

Related to:

denelon commented 1 year ago

Related to:

eduhazard commented 6 months ago

Did you manage to have it solved? Now, with Microsoft pushing new Teams, I found the " preview " Teams as well (https://winget.run/pkg/Microsoft/Teams.Preview), but the version doesn't match with the New Teams v., so I believe maybe it's related to the classic.