/build/static/layout/Breadcrumb_cap_w.png
03/28/2019 12221 views

Installed Teams via MSI file. (Teams not actually installed, no shortcuts appear)

After reboot per user Teams gets installed and shortcut on desktop added.

Works fine.


Now after uninstall nothing happen.

Uninstalled from program and features. Uninstalled successfully and shortcut removed.


Restarted machine. After few seconds Teams automatically gets installed.

Tried uninstallation with following command: This removes Teams but after restart automatically install again.
%localappdata%\AppData\Local\Microsoft\Teams\Update.exe --uninstall -s


Thanks for help in advance.

1 Comment   [ + ] Show comment

Comments

  • I experienced the same issue. I am not even sure how it got on the computer in the first place, but it kept reinstalling and prompting to log in. Very annoying.


Community Chosen Answer

2

Hi,


I was having this same problem earlier. 


I was able to resolve this by uninstalling Microsoft Teams & another program called Teams Machine-Wide Installer.


I also ran this PowerShell script provided by Microsoft for Teams cleanup just in case:


<#
.SYNOPSIS
This script allows you to uninstall the Microsoft Teams app and remove Teams directory for a user.
.DESCRIPTION
Use this script to clear the installed Microsoft Teams application. Run this PowerShell script for each user profile for which the Teams App was installed on a machine. After the PowerShell has executed on all user profiles, Teams can be redeployed.
#>
$TeamsPath = [System.IO.Path]::Combine($env:LOCALAPPDATA, 'Microsoft', 'Teams')
$TeamsUpdateExePath = [System.IO.Path]::Combine($env:LOCALAPPDATA, 'Microsoft', 'Teams', 'Update.exe')
try
{
    if (Test-Path -Path $TeamsUpdateExePath) {
        Write-Host "Uninstalling Teams process"
        # Uninstall app
        $proc = Start-Process -FilePath $TeamsUpdateExePath -ArgumentList "-uninstall -s" -PassThru
        $proc.WaitForExit()
    }
    if (Test-Path -Path $TeamsPath) {
        Write-Host "Deleting Teams directory"
        Remove-Item –Path $TeamsPath -Recurse
    }
}
catch
{
    Write-Error -ErrorRecord $_
    exit /b 1
}


Answered 04/02/2019 by: feeldamped
Second Degree Blue Belt

All Answers

0

i was going through the same problem. what i did was went to the main computer drive with all the windows files (for me it was :C) and went to program files and uninstalled the teams installer document and then the problem was solved.


Answered 07/04/2019 by: hardboee
White Belt

0

Sounds like the ActiveSetup stub is not getting remove. Have a hunt around in the registry to ensure its been removed after uninstall. If you are unsure on where to look, you can examine the MSI and go from there. 

This is presuming you know how to work with MSIs.


Just to note, if you want to uninstall from all user profiles that logon that computer, you'll need to add the ActiveSetup stub with the uninstall string you mentioned.

Answered 03/30/2019 by: rileyz
Red Belt

0

I just did this the other day, and it worked. Here is a screenshot of an Online k-script I set up, and it worked. Running MsiExec.exe /X{39AF0813-FA7B-4860-ADBE-93B9B214B914} /qn from command prompt gets rid of it.


Answered 04/05/2019 by: jmorton
Yellow Belt