Microsoft Teams suddenly stopped working. I attempted to uninstall and reinstall it, but the installation failed.

cruise 331 Reputation points
2024-12-23T08:17:01.6133333+00:00

System Version: Windows Server 2022 Datacenter

Help Needed:

  • What could be the possible reasons?
  • What are the potential solutions?
  • Should I check system logs or specific locations for error details?

logs:

2024-12-23 07:21:19> Program: Starting Squirrel Updater: --install . --rerunningWithoutUAC --exeName=MSTeamsSetup (1).exe --bootstrapperMode

2024-12-23 07:21:19> RegistryService: TryDeleteRegKey: HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\AcquireSource not found

2024-12-23 07:21:19> RegistryService: RegKeyExists: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Teams\ does not exist

2024-12-23 07:21:20> Program: bootStrapperModeSettings: pdsEndpoint:https://teams.microsoft.com/desktopclient/installer/windows/

2024-12-23 07:21:20> Program: bootStrapperModeSettings: fallbackNextGenAppPayloadUrlX64:https://aka.ms/maglev-x64

2024-12-23 07:21:20> Program: bootStrapperModeSettings: fallbackNextGenAppPayloadUrlX86:https://aka.ms/maglev-x86

2024-12-23 07:21:20> Program: bootStrapperModeSettings: fallbackNextGenAppPayloadUrlARM64:https://aka.ms/maglev-arm64

2024-12-23 07:21:20> Program: bootStrapperModeSettings: getInstallerEndpointUrl:https://teams.live.com/downloads/getinstaller

2024-12-23 07:21:20> Program: bootStrapperModeSettings: fallbackNextGenWorkAppPayloadUrlX64:https://go.microsoft.com/fwlink/?linkid=2196106

2024-12-23 07:21:20> Program: bootStrapperModeSettings: fallbackNextGenWorkAppPayloadUrlX86:https://go.microsoft.com/fwlink/?linkid=2196060

2024-12-23 07:21:20> Program: bootStrapperModeSettings: fallbackNextGenWorkAppPayloadUrlARM64:https://go.microsoft.com/fwlink/?linkid=2196207

2024-12-23 07:21:20> RegistryService: TryGetRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber exists. Data - 20348

2024-12-23 07:21:20> RegistryService: TryGetRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentMajorVersionNumber exists. Data - 10

2024-12-23 07:21:20> RegistryService: TryGetRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentMinorVersionNumber exists. Data - 0

2024-12-23 07:21:20> RegistryService: TryGetRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber exists. Data - 20348

2024-12-23 07:21:20> FileDownloader: Downloading url: https://teams.live.com/downloads/getinstaller?arch=x64&platVersion=10.0.20348

2024-12-23 07:21:20> BootstrapperInstallManager: getinstaller endpoint returned installer path https://statics.teams.cdn.office.net/production-windows-x64/1.7.00.19353/

2024-12-23 07:21:20> BootstrapperInstallManager: No decoded deep link is returned from get installer endpoint. Continue install without deep link

2024-12-23 07:21:20> BootstrapperInstallManager: Use next gen work app

2024-12-23 07:21:20> Program: Installing the Teams 2 client

2024-12-23 07:21:20> Program: Found package using PackageManager API Microsoft Teams

2024-12-23 07:21:20> Program: Current version installed: 24295.605.3225.8804

2024-12-23 07:21:20> Program: Running the Teams 2 client installer

2024-12-23 07:21:20> Program: Using PackageManager API StagePackageAsync, Url: https://go.microsoft.com/fwlink/?linkid=2196106

2024-12-23 07:21:21> Program: T2.2 StagePackageAsync progress: 3

2024-12-23 07:21:23> Program: T2.2 StagePackageAsync progress: 3

2024-12-23 07:21:23> Program: T2.2 StagePackageAsync progress: 51

2024-12-23 07:21:24> Program: T2.2 StagePackageAsync progress: 100

2024-12-23 07:21:24> Program: Staging status: Completed

2024-12-23 07:21:24> Program: Using PackageManager RegisterPackageByFamilyName attempt 1 out of 3

2024-12-23 07:21:24> Program: Registration status: Completed

2024-12-23 07:21:24> Program: Found package using PackageManager API Microsoft Teams

2024-12-23 07:21:25> Program: Attempting to launch teams try 1 out of 3

2024-12-23 07:21:25> Program: Exception when launching teams: System.Exception: Exception of type 'System.Exception' was thrown.

at Squirrel.Teams2Client.LaunchT2WithDeepLink(String deeplink, String acquireSource)

2024-12-23 07:21:25> Program: Using LaunchUriAsync

2024-12-23 07:21:25> Program: LaunchUriAsync succeeded

2024-12-23 07:21:25> Program: Found package using PackageManager API Microsoft Teams

2024-12-23 07:21:25> Program: Upgraded app version: 24295.605.3225.8804

2024-12-23 07:22:54> Program: Starting Squirrel Updater: --install . --exeName=MSTeamsSetup (1).exe --bootstrapperMode

2024-12-23 07:22:54> RegistryService: TryDeleteRegKey: HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\AcquireSource not found

2024-12-23 07:22:54> RegistryService: RegKeyExists: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Teams\ does not exist

2024-12-23 07:22:54> Program: bootStrapperModeSettings: pdsEndpoint:https://teams.microsoft.com/desktopclient/installer/windows/

2024-12-23 07:22:54> Program: bootStrapperModeSettings: fallbackNextGenAppPayloadUrlX64:https://aka.ms/maglev-x64

2024-12-23 07:22:54> Program: bootStrapperModeSettings: fallbackNextGenAppPayloadUrlX86:https://aka.ms/maglev-x86

2024-12-23 07:22:54> Program: bootStrapperModeSettings: fallbackNextGenAppPayloadUrlARM64:https://aka.ms/maglev-arm64

2024-12-23 07:22:54> Program: bootStrapperModeSettings: getInstallerEndpointUrl:https://teams.live.com/downloads/getinstaller

2024-12-23 07:22:54> Program: bootStrapperModeSettings: fallbackNextGenWorkAppPayloadUrlX64:https://go.microsoft.com/fwlink/?linkid=2196106

2024-12-23 07:22:54> Program: bootStrapperModeSettings: fallbackNextGenWorkAppPayloadUrlX86:https://go.microsoft.com/fwlink/?linkid=2196060

2024-12-23 07:22:54> Program: bootStrapperModeSettings: fallbackNextGenWorkAppPayloadUrlARM64:https://go.microsoft.com/fwlink/?linkid=2196207

2024-12-23 07:22:54> RegistryService: TryGetRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber exists. Data - 20348

2024-12-23 07:22:54> RegistryService: TryGetRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentMajorVersionNumber exists. Data - 10

2024-12-23 07:22:54> RegistryService: TryGetRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentMinorVersionNumber exists. Data - 0

2024-12-23 07:22:54> RegistryService: TryGetRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber exists. Data - 20348

2024-12-23 07:22:54> FileDownloader: Downloading url: https://teams.live.com/downloads/getinstaller?arch=x64&platVersion=10.0.20348

2024-12-23 07:22:54> BootstrapperInstallManager: getinstaller endpoint returned installer path https://statics.teams.cdn.office.net/production-windows-x64/1.7.00.19353/

2024-12-23 07:22:54> BootstrapperInstallManager: No decoded deep link is returned from get installer endpoint. Continue install without deep link

2024-12-23 07:22:54> BootstrapperInstallManager: Use next gen work app

2024-12-23 07:22:54> Program: Installing the Teams 2 client

2024-12-23 07:22:54> Program: Found package using PackageManager API Microsoft Teams

2024-12-23 07:22:54> Program: Current version installed: 24295.605.3225.8804

2024-12-23 07:22:54> Program: Running the Teams 2 client installer

2024-12-23 07:22:54> Program: Using PackageManager API StagePackageAsync, Url: https://go.microsoft.com/fwlink/?linkid=2196106

2024-12-23 07:22:55> Program: T2.2 StagePackageAsync progress: 3

2024-12-23 07:22:57> Program: T2.2 StagePackageAsync progress: 3

2024-12-23 07:22:57> Program: T2.2 StagePackageAsync progress: 51

2024-12-23 07:22:58> Program: T2.2 StagePackageAsync progress: 100

2024-12-23 07:22:58> Program: Staging status: Completed

2024-12-23 07:22:58> Program: Using PackageManager RegisterPackageByFamilyName attempt 1 out of 3

2024-12-23 07:22:59> Program: Registration status: Completed

2024-12-23 07:22:59> Program: Found package using PackageManager API Microsoft Teams

2024-12-23 07:22:59> Program: Attempting to launch teams try 1 out of 3

2024-12-23 07:22:59> Program: Exception when launching teams: System.Exception: Exception of type 'System.Exception' was thrown.

at Squirrel.Teams2Client.LaunchT2WithDeepLink(String deeplink, String acquireSource)

2024-12-23 07:22:59> Program: Using LaunchUriAsync

2024-12-23 07:22:59> Program: LaunchUriAsync succeeded

2024-12-23 07:22:59> Program: Found package using PackageManager API Microsoft Teams

2024-12-23 07:22:59> Program: Upgraded app version: 24295.605.3225.8804

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,553 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,478 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wail Waked Amer 75 Reputation points
    2024-12-23T14:26:47.9266667+00:00

    Possible Reasons for the Issue

    Registry Key Issues:

    • The logs indicate missing or inaccessible registry keys for Teams:
      - `HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\AcquireSource` not found.
      
            - `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Teams` does not exist.
      
            This could indicate that Teams wasn't properly installed or the registry keys were removed.
      
            **Permissions Problem**:
      
               - Lack of proper permissions to modify registry keys or system files might block the installation or update process.
      
               **Compatibility Issues**:
      
                  - Although Teams supports Windows Server, certain configurations may cause compatibility issues, particularly with Windows Server 2022.
      
                  **Corrupt Installation Files**:
      
                     - The logs show that Teams is trying to fetch installation files from Microsoft URLs. If these files are corrupt or not downloading properly, the installation will fail.
      
                     **Network Issues**:
      
                        - If your server cannot reach Microsoft's endpoints (due to firewall or proxy restrictions), the installer might fail to fetch required resources.
      
                        **Blocked by Security Policies**:
      
                           - Some Group Policy or third-party software (e.g., antivirus, endpoint security tools) might block the installation process.
      
                           **Squirrel Updater Issues**:
      
                              - The error originates from the Squirrel updater, which is responsible for packaging, updating, and installing desktop apps. If Squirrel has problems writing files or accessing resources, the process will fail.
      

    Potential Solutions

    1. Repair Registry Keys
    • Check and restore the missing registry keys manually:
      1. Open regedit and navigate to the paths mentioned in the logs.
        1. If they are missing, create the following:
          • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Teams
            - `HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\AcquireSource`
            
               1. Ensure the current user and SYSTEM account have the necessary permissions.
            
    1. Run the Installer as Administrator
    • Ensure that the installer (MSTeamsSetup.exe) is run with elevated privileges:
      1. Right-click the installer and choose Run as Administrator.
        1. This resolves permission-related issues.
    1. Check Network Access
    • Verify that your server can access the following endpoints:
      • https://teams.microsoft.com/desktopclient/installer/windows/
        • https://aka.ms/maglev-x64
          • https://aka.ms/maglev-x86
          • Temporarily disable firewalls or proxies to test connectivity.
    1. Reset Teams Installation
    • Fully uninstall Teams and delete residual files:
      1. Uninstall Teams from Control Panel > Programs.
        1. Delete residual Teams folders:
          • %AppData%\Microsoft\Teams
            - `%LocalAppData%\Microsoft\Teams`
            
                  - `%ProgramData%\Microsoft\Teams`
            
                     1. Reinstall Teams with a fresh installer from the Microsoft website.
            
    1. Update Windows Server
    • Ensure Windows Server 2022 is up to date:
      1. Go to Settings > Update & Security > Windows Update.
        1. Install all available updates.
    1. Modify Group Policies
    • If your organization enforces policies that block installations:
      1. Open the Group Policy Editor (gpedit.msc).
        1. Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Teams.
          1. Modify or disable policies blocking Teams installation.
    1. Check for Squirrel-Specific Issues
    • Clear any existing Squirrel logs to ensure a clean start:
      • Delete logs from %LocalAppData%\SquirrelTemp.
      • Re-run the installation.
    1. Use Offline Installer
    • Download the full offline installer for Teams (not the bootstrapper):

    Check System Logs for Details

    1. Event Viewer Logs
    • Open Event Viewer:
      1. Navigate to Windows Logs > Application and System.
        1. Look for errors related to Teams, MSTeamsSetup.exe, or Squirrel.
        • Pay attention to error codes or warnings that can provide additional insights.
    1. Installation Logs
    • Check %LocalAppData%\SquirrelTemp for detailed installation logs.
    1. OneDrive Sync Logs
    • If Teams is part of OneDrive deployment, verify the OneDrive sync status Possible Reasons for the Issue
      1. Registry Key Issues:
        • The logs indicate missing or inaccessible registry keys for Teams:
        • HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\AcquireSource not found.
        • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Teams does not exist.
        This could indicate that Teams wasn't properly installed or the registry keys were removed.
      2. Permissions Problem:
        • Lack of proper permissions to modify registry keys or system files might block the installation or update process.
      3. Compatibility Issues:
        • Although Teams supports Windows Server, certain configurations may cause compatibility issues, particularly with Windows Server 2022.
      4. Corrupt Installation Files:
        • The logs show that Teams is trying to fetch installation files from Microsoft URLs. If these files are corrupt or not downloading properly, the installation will fail.
      5. Network Issues:
        • If your server cannot reach Microsoft's endpoints (due to firewall or proxy restrictions), the installer might fail to fetch required resources.
      6. Blocked by Security Policies:
        • Some Group Policy or third-party software (e.g., antivirus, endpoint security tools) might block the installation process.
      7. Squirrel Updater Issues:
        • The error originates from the Squirrel updater, which is responsible for packaging, updating, and installing desktop apps. If Squirrel has problems writing files or accessing resources, the process will fail.
      Potential Solutions 1. Repair Registry Keys
      • Check and restore the missing registry keys manually:
        1. Open regedit and navigate to the paths mentioned in the logs.
        2. If they are missing, create the following:
          • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Teams
          • HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\AcquireSource
        3. Ensure the current user and SYSTEM account have the necessary permissions.
      2. Run the Installer as Administrator
      • Ensure that the installer (MSTeamsSetup.exe) is run with elevated privileges:
        1. Right-click the installer and choose Run as Administrator.
        2. This resolves permission-related issues.
      3. Check Network Access
      • Verify that your server can access the following endpoints:
        • https://teams.microsoft.com/desktopclient/installer/windows/
        • https://aka.ms/maglev-x64
        • https://aka.ms/maglev-x86
      • Temporarily disable firewalls or proxies to test connectivity.
      4. Reset Teams Installation
      • Fully uninstall Teams and delete residual files:
        1. Uninstall Teams from Control Panel > Programs.
        2. Delete residual Teams folders:
          • %AppData%\Microsoft\Teams
          • %LocalAppData%\Microsoft\Teams
          • %ProgramData%\Microsoft\Teams
        3. Reinstall Teams with a fresh installer from the Microsoft website.
      5. Update Windows Server
      • Ensure Windows Server 2022 is up to date:
        1. Go to Settings > Update & Security > Windows Update.
        2. Install all available updates.
      6. Modify Group Policies
      • If your organization enforces policies that block installations:
        1. Open the Group Policy Editor (gpedit.msc).
        2. Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Teams.
        3. Modify or disable policies blocking Teams installation.
      7. Check for Squirrel-Specific Issues
      • Clear any existing Squirrel logs to ensure a clean start:
        • Delete logs from %LocalAppData%\SquirrelTemp.
      • Re-run the installation.
      8. Use Offline Installer
      • Download the full offline installer for Teams (not the bootstrapper):
      Check System Logs for Details 1. Event Viewer Logs
      • Open Event Viewer:
        1. Navigate to Windows Logs > Application and System.
        2. Look for errors related to Teams, MSTeamsSetup.exe, or Squirrel.
      • Pay attention to error codes or warnings that can provide additional insights.
      2. Installation Logs
      • Check %LocalAppData%\SquirrelTemp for detailed installation logs.
      3. OneDrive Sync Logs
      • If Teams is part of OneDrive deployment, verify the OneDrive sync status

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.