Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft teams upgrade fails 100% of the time #18415

Closed
rbarbrow opened this issue Jun 21, 2021 · 14 comments
Closed

Microsoft teams upgrade fails 100% of the time #18415

rbarbrow opened this issue Jun 21, 2021 · 14 comments
Labels
Help-Wanted This is a good candidate work item from the community.
Milestone

Comments

@rbarbrow
Copy link

winget upgrade --all

results in an error "Installer failed with exit code: 1638" if the program is running or not running.

@denelon denelon transferred this issue from microsoft/winget-cli Jun 21, 2021
@ghost ghost added the Needs: Triage label Jun 21, 2021
@denelon denelon added Help-Wanted This is a good candidate work item from the community. and removed Needs: Triage labels Jun 21, 2021
@jedieaston
Copy link
Contributor

jedieaston commented Jun 22, 2021

This has something to do with Teams managing its own updates in a less than kosher way, we've discussed it before in #14115 (and several other places).

The solution to the Teams issues is two-pronged (as I understand it):

Basically, this is a lot of words to say we can't fix this right this second. Sorry about that, hopefully it'll work how you'd expect soon.

@SignFinder
Copy link

It looks like something strange when winget detecting Microsoft Teams,
image

@SignFinder
Copy link

SignFinder commented Jun 24, 2021

I have found the problems root cause.
There are two different teams client on the machine can be.
First - located in C:\Program Files (x86)\Teams Installer\ System-wide installer. It is deploying from Teams MSI packet https://docs.microsoft.com/ru-ru/microsoftteams/msi-deployment and it is the main option to deploy Teams in organisation.
The second - which can be installed from from that systemwide or from teams exe installer https://www.microsoft.com/ru-ru/microsoft-teams/download-app - to each user. It is locating in C:\Users%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
Updating only the second one. But winget detecting first.
image

@bshoshany
Copy link

I am experiencing a similar issue as well. I have Teams v1.4.00.11161 installed on my computer, and every time I run winget upgrade --all it attempts to upgrade it and fails with exit code 1638. The log file says:

Windows Installer reconfigured the product. Product Name: Teams Machine-Wide Installer. Product Version: 1.4.0.11161. 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.

When I type winget list teams there are two versions of Teams in the list:

Name            Id              Version      Available    Source
----------------------------------------------------------------
Microsoft Teams Microsoft.Teams 1.4.00.11161
Microsoft Teams Microsoft.Teams 1.4.0.4167   1.4.00.11161 winget

However, there is only one version of Teams in Add/Remove Programs, and removing it only removes the latest version, not the previous version. Same with winget uninstall teams.

@chbwien
Copy link
Contributor

chbwien commented Aug 10, 2021

If you get 1638 you can help with the --scope info. Most likely you need to do a
winget install Microsoft.Teams --scope user
That worked for me (but doesn't help the --all problem)

@WrinkleRelease
Copy link

If I could uninstall Teams completely, I would, and that would take care of the problem. It keeps re-installing itself though. :(

@Timmmy
Copy link

Timmmy commented Sep 3, 2021

Same for Visual c++ redistributables.
It keeps messing up the x64 and x86 versions.

C:\Users\Tim>winget upgrade Microsoft.VC++2013Redist-x64
Er zijn meerdere geïnstalleerde pakketten gevonden die overeenkomen met de invoer criteria. Verfijn de invoer.

Naam                                                         Id
---------------------------------------------------------------------------------------------------
Microsoft Visual C++ 2013 Redistributable (x64)              Microsoft.VC++2013Redist-x64
Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.40664 {9dff3540-fc85-4ed5-ac84-9e3c7fd8bece}

I'm able to select the second one with --id, but the first is working neither with --id, -e or both

@vedantmgoyal9
Copy link
Contributor

Duplicate of #16155

@akk-7
Copy link

akk-7 commented Mar 6, 2022

@jedieaston
I would like to ask how the progress of the Microsoft teams upgrade issue is coming along?

@jedieaston
Copy link
Contributor

There is currently a spec PR open for app pinning that should help (microsoft/winget-cli#1894), but implementation hasn't started yet. I believe that's on the roadmap for 1.3?

Basically, no ETA yet.

@akk-7
Copy link

akk-7 commented Mar 7, 2022

Okay, have read the conversations
Thanks for the update.

@SunbrightShinobi
Copy link

SunbrightShinobi commented Sep 15, 2023

I was able to upgrade it with winget upgrade 'Microsoft Teams' but it did take a few minutes to complete tried to do the same with 'Teams Machine-Wide Installer' but it failed

@Trenly
Copy link
Contributor

Trenly commented Apr 30, 2024

Thank you for taking the time to report this issue. In the amount of time the issue has been open, there have been several updates to the WinGet CLI which may have helped mitigate some of these concerns. I encourage you to try out the latest version of the CLI and see if your issue still persists.

Additional Notes:

  • Applications can now be pinned from upgrade using the winget pin command
  • Teams now has both the new teams and teams classic, which may help with the upgrade process
Close with reason: Stale;

@saurabh-mhaisekar
Copy link

I am still facing same issue... cannot upgrade Microsoft.Teams.Classic

My current Version of winget cli is v1.7.11261

@denelon denelon added this to the 1.10 Packages milestone Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help-Wanted This is a good candidate work item from the community.
Projects
None yet
Development

No branches or pull requests