Microsoft Teams is not installing

Solved
eloge.cg Posted messages 188 Registration date   Status Member Last intervention   -  
bendrop Posted messages 12662 Registration date   Status Contributor Last intervention   -

Hello,

The Teams application is no longer working on my workstation, and I don't know why.

I uninstalled it, but when reinstalling, an error message appears (image below).

Thank you for your help.

Best regards.


5 answers

  1. bendrop Posted messages 12662 Registration date   Status Contributor Last intervention   8 527
     

    Good evening,

    1. From Windows Explorer, go to C:\Users\PC\AppData\Local\Microsoft\ and delete the Teams folder.
    2. Install Teams as an administrator. To do this, right-click on the Teams installation file and select Run as administrator.

    Regards.


    2
    1. eloge.cg Posted messages 188 Registration date   Status Member Last intervention  
       

      Awesome!!!! It worked!!!

      Thank you Bendrop for your assistance.

      Thank you CCM forum.

      0
      1. bendrop Posted messages 12662 Registration date   Status Contributor Last intervention   8 527 > eloge.cg Posted messages 188 Registration date   Status Member Last intervention  
         

        You're welcome.

        Best regards.

        0
  2. madmyke Posted messages 52304 Registration date   Status Moderator Last intervention   12 488
     

    Hello
    On which page did you download the reinstallation file?
    Are you the administrator of this machine?
    Best regards


    0
  3. bendrop Posted messages 12662 Registration date   Status Contributor Last intervention   8 527
     

    Hello,

    Please open the log file to find out the reason and let us know in your next response.

    Best regards.


    0
  4. eloge.cg Posted messages 188 Registration date   Status Member Last intervention  
     

    Hello,

    Below are the logs

    2021-09-08 15:11:25> Program: Starting Squirrel Updater: --install . --checkInstall --source=PROPLUS --silent --exeName=Teams.exe
    2021-09-08 15:11:25> RegistryService: TryGetRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration\ProductReleaseIds exists. Data - O365ProPlusRetail
    2021-09-08 15:11:25> RegistryService: TryGetRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration\AudienceData exists. Data - Production::CC
    2021-09-08 15:11:25> RegistryService: TryGetRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\LastScenario exists. Data - UPDATE
    2021-09-08 15:11:25> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Policies\Microsoft\Cloud\Office\16.0\Teams does not exist
    2021-09-08 15:11:25> Program: Registry value Software\Policies\Microsoft\Cloud\Office\16.0\Teams\PreventFirstLaunchAfterInstall does not exist
    2021-09-08 15:11:25> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Teams does not exist
    2021-09-08 15:11:25> Program: Registry value Software\Policies\Microsoft\Office\16.0\Teams\PreventFirstLaunchAfterInstall does not exist
    2021-09-08 15:11:25> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Teams does not exist
    2021-09-08 15:11:25> Program: Registry value Software\Microsoft\Office\16.0\Teams\PreventFirstLaunchAfterInstall does not exist
    2021-09-08 15:11:25> Program: Registry flags are not set: proceed with default value NotConfigured
    2021-09-08 15:11:25> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Microsoft\Office\Teams does not exist
    2021-09-08 15:11:32> Program: Starting install, writing to C:\Users\PC\AppData\Local\SquirrelTemp
    2021-09-08 15:11:32> Program: File does not contain contextual info: Teams.exe
    2021-09-08 15:11:32> UpdateManager: using rootAppDirectory: C:\Users\PC\AppData\Local\Microsoft\Teams
    2021-09-08 15:11:32> Program: About to install to: C:\Users\PC\AppData\Local\Microsoft\Teams
    2021-09-08 15:11:32> Program: Setup.json exist, copying over
    2021-09-08 15:11:32> RegistryService: RegKeyExists: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run has TeamsMachineInstaller. Data - C:\Program Files (x86)\Teams Installer\Teams.exe --checkInstall --source=PROPLUS
    2021-09-08 15:11:32> RegistryService: TrySetRegKey: HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\InstallSource created
    2021-09-08 15:11:32> RegistryService: TrySetRegKey: HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\InstallSource set successfully as MSI
    2021-09-08 15:11:32> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\PC\AppData\Local\Microsoft\Teams\packages\.betaId'.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
       at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
       at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
       at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
       at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
    2021-09-08 15:11:32> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\PC\AppData\Local\Microsoft\Teams\packages\RELEASES'.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
       at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__3.MoveNext()
    2021-09-08 15:11:32> CheckForUpdateImpl: Reading RELEASES file from C:\Users\PC\AppData\Local\SquirrelTemp
    2021-09-08 15:11:33> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
    2021-09-08 15:11:33> ApplyReleasesImpl: No delta packages found. Applying current release package.
    2021-09-08 15:11:33> ApplyReleasesImpl: getting squirrel aware apps failed with exception Could not find a part of the path 'C:\Users\PC\AppData\Local\Microsoft\Teams\current'.
    2021-09-08 15:11:33> ApplyReleasesImpl: Writing files to app directory: C:\Users\PC\AppData\Local\Microsoft\Teams\current
    2021-09-08 15:12:03> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\PC\AppData\Local\Microsoft\Teams\current\Teams.exe]
    2021-09-08 15:12:16> ApplyReleasesImpl: About to RemoveOldShorcuts for Teams.exe, rootAppDir C:\Users\PC\AppData\Local\Microsoft\Teams
    2021-09-08 15:12:17> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Policies\Microsoft\Cloud\Office\16.0\Teams does not exist
    2021-09-08 15:12:17> ApplyReleasesImpl: Registry value Software\Policies\Microsoft\Cloud\Office\16.0\Teams\PreventFirstLaunchAfterInstall does not exist
    2021-09-08 15:12:17> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Teams does not exist
    2021-09-08 15:12:17> ApplyReleasesImpl: Registry value Software\Policies\Microsoft\Office\16.0\Teams\PreventFirstLaunchAfterInstall does not exist
    2021-09-08 15:12:17> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Teams does not exist
    2021-09-08 15:12:17> ApplyReleasesImpl: Registry value Software\Microsoft\Office\16.0\Teams\PreventFirstLaunchAfterInstall does not exist
    2021-09-08 15:12:17> ApplyReleasesImpl: Registry flags are not set: proceed with default value NotConfigured
    2021-09-08 15:12:23> ApplyReleasesImpl: Starting fixPinnedExecutables
    2021-09-08 15:12:23> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
    2021-09-08 15:12:23> ApplyReleasesImpl: Examining Pin: Firefox.lnk
    2021-09-08 15:12:23> ApplyReleasesImpl: Examining Pin: Microsoft Edge.lnk
    2021-09-08 15:12:23> ApplyReleasesImpl: Examining Pin: Outlook.lnk
    2021-09-08 15:12:23> ApplyReleasesImpl: Fixing up tray icons
    2021-09-08 15:12:23> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.NullReferenceException: Object reference not set to an instance of an object.
       at Squirrel.UpdateManager.ApplyReleasesImpl.<unshimOurselves>b__24_0(RegistryView view)
    2021-09-08 15:12:23> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.NullReferenceException: Object reference not set to an instance of an object.
       at Squirrel.UpdateManager.ApplyReleasesImpl.<unshimOurselves>b__24_0(RegistryView view)
    2021-09-08 15:12:24> MeetingAddinInstaller: System.ArgumentException: Cannot delete a subkey because it does not exist.
       at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
       at Microsoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey, Boolean throwOnMissingSubKey)
       at Microsoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey)
       at Squirrel.MeetingAddinInstaller.<InstallMeetingAddinAsync>d__15.MoveNext()
    2021-09-08 15:12:28> MeetingAddinInstaller: StagedAppDirectory does not exist. Using Current
    2021-09-08 15:12:28> MeetingAddinInstaller: There is no version.txt. Falling back to getting version from folder name
    2021-09-08 15:12:28> MeetingAddinInstaller: Version: 1.0.21105.1; addinPackageDirectory: 1.0.21105.1
    2021-09-08 15:12:28> MeetingAddinInstaller: .dead exists: False
    2021-09-08 15:12:28> MeetingAddinInstaller: path to .dead: C:\Users\PC\AppData\Local\Microsoft\TeamsMeetingAddin\1.0.21105.1\.dead
    2021-09-08 15:12:28> MeetingAddinInstaller: before cleanup unused versions
    2021-09-08 15:12:30> MeetingAddinInstaller: Addin directory exists. Copy was successful
    2021-09-08 15:12:35> MeetingAddinInstaller: Version 1.0.21105.1 of the meeting add-in is now installed
    2021-09-08 15:12:35> PresenceAddinInstaller: Installing Teams Presence addin for Outlook...
    2021-09-08 15:12:35> PresenceAddinInstaller: Copying C:\Users\PC\AppData\Local\Microsoft\Teams\current\resources\assets\tlb\Uc.tlb to C:\Users\PC\AppData\Local\Microsoft\TeamsPresenceAddin
    2021-09-08 15:12:35> PresenceAddinInstaller: Copying C:\Users\PC\AppData\Local\Microsoft\Teams\current\resources\assets\tlb\Uc.win32.tlb to C:\Users\PC\AppData\Local\Microsoft\TeamsPresenceAddin
    2021-09-08 15:12:35> PresenceAddinInstaller: check if UC TypeLib points to current\resources\assets\tlb\Uc.tlb
    2021-09-08 15:12:35> PresenceAddinInstaller: UC Typelib WIN32 is registered under HKLM and file exists. Registration not needed!
    2021-09-08 15:12:35> PresenceAddinInstaller: Registering UC Typelib WIN64 under HKCU...
    2021-09-08 15:12:37> PresenceAddinInstaller: UC Typelib WIN64 successfully registered to C:\Users\PC\AppData\Local\Microsoft\TeamsPresenceAddin\Uc.tlb under HKCU!
    2021-09-08 15:12:38> ApplyReleasesImpl: cleanDeadVersions: for original version of  and current version of 1.4.00.19572
    2021-09-08 15:12:38> ApplyReleasesImpl: cleanDeadVersions: exclude current folder stage
    2021-09-08 15:12:42> RegistryService: TryDeleteRegKey: HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\PreventInstallationFromMsi not found
    2021-09-08 15:20:12> Program: Starting Squirrel Updater: --install .
    2021-09-08 15:20:13> Program: Starting install, writing to C:\Users\PC\AppData\Local\SquirrelTemp
    2021-09-08 15:20:26> Program: About to install to: C:\Users\PC\AppData\Local\WhatsApp
    2021-09-08 15:20:29> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\PC\AppData\Local\WhatsApp\packages\.betaId'.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
       at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
       at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
       at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
       at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
    2021-09-08 15:20:29> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\PC\AppData\Local\WhatsApp\packages\RELEASES'.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
       at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()
    2021-09-08 15:20:29> CheckForUpdateImpl: Reading RELEASES file from C:\Users\PC\AppData\Local\SquirrelTemp
    2021-09-08 15:20:30> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
    2021-09-08 15:21:16> ApplyReleasesImpl: Writing files to app directory: C:\Users\PC\AppData\Local\WhatsApp\app-2.2134.10
    2021-09-08 15:21:45> LogHost: Rigging execution stub for WhatsApp_ExecutionStub.exe to C:\Users\PC\AppData\Local\WhatsApp\WhatsApp.exe
    2021-09-08 15:21:51> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\PC\AppData\Local\WhatsApp\app-2.2134.10\WhatsApp.exe]
    2021-09-08 15:22:03> ApplyReleasesImpl: Starting fixPinnedExecutables
    2021-09-08 15:22:03> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
    2021-09-08 15:22:03> ApplyReleasesImpl: Examining Pin: Firefox.lnk
    2021-09-08 15:22:03> ApplyReleasesImpl: Examining Pin: Microsoft Edge.lnk
    2021-09-08 15:22:03> ApplyReleasesImpl: Examining Pin: Outlook.lnk
    2021-09-08 15:22:03> ApplyReleasesImpl: Fixing up tray icons
    2021-09-08 15:22:04> ApplyReleasesImpl: cleanDeadVersions: for version 2.2134.10
    2021-09-08 15:22:04> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-2.2134.10
    c__DisplayClass12_1`1.<ForEachAsync>b__1()
       at System.Threading.Tasks.Task.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
    --- End of stack trace from previous location where the exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    --- End of stack trace from previous location where the exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Squirrel.Utility.<>c__DisplayClass13_1`1.<<ForEachAsync>b__1>d.MoveNext()
    --- End of stack trace from previous location where the exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
    --- End of stack trace from previous location where the exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Squirrel.Utility.<>c.<<DeleteDirectory>b__19_1>d.MoveNext()
    --- End of stack trace from previous location where the exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
    --- End of stack trace from previous location where the exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Squirrel.Utility.<LogIfThrows>d__42.MoveNext()
    2021-09-08 15:20:56> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.IO.IOException: The process cannot access the file 'C:\Users\PC\AppData\Local\WhatsApp\packages\WhatsApp-2.2134.10-full.nupkg' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.File.InternalDelete(String path, Boolean checkHost)
       at System.IO.File.Delete(String path)
       at Squirrel.Utility.<>c.<DeleteDirectory>b__19_0(String file)
       at Squirrel.Utility.<>c__DisplayClass12_1`1.<ForEachAsync>b__1()
       at System.Threading.Tasks.Task.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
    --- End of stack trace from previous location where the exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Squirrel.Utility.<>c__DisplayClass13_1`1.<<ForEachAsync>b__1>d.MoveNext()
    --- End of stack trace from previous location where the exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
    --- End of stack trace from previous location where the exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Squirrel.Utility.<>c.<>LogIfThrows>d__42.MoveNext()
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Squirrel.Update.Program.<Install>d__4.MoveNext()
       --- End of the inner exception stack trace ---
       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout)
       at Squirrel.Update.Program.executeCommandLine(String[] args)
       at Squirrel.Update.Program.main(String[] args)
    ---> (Internal exception #0) System.IO.IOException: The process cannot access the file 'C:\Users\PC\AppData\Local\WhatsApp\packages\WhatsApp-2.2134.10-full.nupkg' because it is being used by another process.

    0