Teams cannot install/launch

Microsoft

Hi Team,

My Microsoft Teams cannot be correctly installed or launch.

Here is log in C:\Users\username\AppData\Local\SquirrelTemp, I have tried deleted all files in C:\Users\username\AppData\Local\Microsoft\Teams and reinstall. It still cannot work.

2021-03-22 20:50:37> Program: Starting Squirrel Updater: --install . --exeName=microsoft-teams-1-4-00-2781-64-bit.exe
2021-03-22 20:50:38> Program: Config already exists. Deleting first.
2021-03-22 20:50:38> Program: setup.json does not exist
2021-03-22 20:50:38> Program: Starting install, writing to C:\Users\username\AppData\Local\SquirrelTemp
2021-03-22 20:50:38> Program: File does not contain contextual info: microsoft-teams-1-4-00-2781-64-bit.exe
2021-03-22 20:50:38> UpdateManager: using rootAppDirectory: C:\Users\username\AppData\Local\Microsoft\Teams
2021-03-22 20:50:38> Program: About to install to: C:\Users\username\AppData\Local\Microsoft\Teams
2021-03-22 20:50:38> Program: Setup.json exist, copying over
2021-03-22 20:50:38> RegistryService: RegKeyExists: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run does not have TeamsMachineInstaller
2021-03-22 20:50:38> Program: CheckMsiAndTryAddInstallSource: Not MSI, no need to add HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\InstallSource
2021-03-22 20:50:38> 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\username\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-03-22 20:50:38> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\username\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-03-22 20:50:38> CheckForUpdateImpl: Reading RELEASES file from C:\Users\username\AppData\Local\SquirrelTemp
2021-03-22 20:50:38> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2021-03-22 20:50:38> ApplyReleasesImpl: No delta packages found. Applying current release package.
2021-03-22 20:50:38> ApplyReleasesImpl: getting squirrel aware apps failed with exception Could not find a part of the path 'C:\Users\username\AppData\Local\Microsoft\Teams\current'.
2021-03-22 20:50:38> ApplyReleasesImpl: Writing files to app directory: C:\Users\username\AppData\Local\Microsoft\Teams\current
2021-03-22 20:50:42> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\username\AppData\Local\Microsoft\Teams\current\Teams.exe]
2021-03-22 20:50:59> ApplyReleasesImpl: Couldn't run Squirrel hook, continuing: C:\Users\username\AppData\Local\Microsoft\Teams\current\Teams.exe: System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at Squirrel.Utility.<>c__DisplayClass12_0.<InvokeProcessAsync>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.<InvokeProcessAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass21_1.<<invokePostInstall>b__2>d.MoveNext()
2021-03-22 20:50:59> ApplyReleasesImpl: About to RemoveOldShorcuts for Teams.exe, rootAppDir C:\Users\username\AppData\Local\Microsoft\Teams
2021-03-22 20:50:59> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Policies\Microsoft\Cloud\Office\16.0\Teams does not exist
2021-03-22 20:50:59> ApplyReleasesImpl: Registry value Software\Policies\Microsoft\Cloud\Office\16.0\Teams\PreventFirstLaunchAfterInstall does not exist
2021-03-22 20:50:59> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Teams does not exist
2021-03-22 20:50:59> ApplyReleasesImpl: Registry value Software\Policies\Microsoft\Office\16.0\Teams\PreventFirstLaunchAfterInstall does not exist
2021-03-22 20:50:59> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Teams does not exist
2021-03-22 20:50:59> ApplyReleasesImpl: Registry value Software\Microsoft\Office\16.0\Teams\PreventFirstLaunchAfterInstall does not exist
2021-03-22 20:50:59> ApplyReleasesImpl: Registry flags are not set: proceed with default value NotConfigured
2021-03-22 20:50:59> ApplyReleasesImpl: Starting fixPinnedExecutables
2021-03-22 20:50:59> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2021-03-22 20:50:59> ApplyReleasesImpl: Examining Pin: Microsoft Edge.lnk
2021-03-22 20:50:59> ApplyReleasesImpl: Examining Pin: Windows PowerShell.lnk
2021-03-22 20:50:59> ApplyReleasesImpl: Fixing up tray icons
2021-03-22 20:50:59> 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-03-22 20:50:59> 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-03-22 20:50:59> MeetingAddinInstaller: System.ArgumentException: Cannot delete a subkey tree because the subkey 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-03-22 20:50:59> MeetingAddinInstaller: StagedAppDirectory does not exist. Using Current
2021-03-22 20:50:59> MeetingAddinInstaller: There is no version.txt. Falling back to getting version from folder name
2021-03-22 20:50:59> MeetingAddinInstaller: Version: 1.0.20244.4; addinPackageDirectory: 1.0.20244.4
2021-03-22 20:50:59> MeetingAddinInstaller: Version 1.0.20244.4 of the meeting add-in is already installed
2021-03-22 20:50:59> PresenceAddinInstaller: Installing Teams Presence addin for Outlook...
2021-03-22 20:50:59> PresenceAddinInstaller: check if UC TypeLib points to current\resources\assets\tlb\Uc.tlb
2021-03-22 20:50:59> PresenceAddinInstaller: UC Typelib WIN32 is registered under HKCU and file exists. Registration not needed!
2021-03-22 20:50:59> PresenceAddinInstaller: UC Typelib WIN64 is registered under HKLM and file exists. Registration not needed!
2021-03-22 20:50:59> ApplyReleasesImpl: cleanDeadVersions: for original version of and current version of 1.4.00.2781
2021-03-22 20:50:59> ApplyReleasesImpl: cleanDeadVersions: exclude current folder stage
2021-03-22 20:51:01> RegistryService: TryDeleteRegKey: HKEY_CURRENT_USER\Software\Microsoft\Office\Teams not found
2021-03-22 20:52:21> Program: Starting Squirrel Updater: --install . --exeName=Teams_windows_x64 (2).exe
2021-03-22 20:52:21> Program: Config already exists. Deleting first.
2021-03-22 20:52:21> Program: Starting install, writing to C:\Users\username\AppData\Local\SquirrelTemp
2021-03-22 20:52:21> Program: File does not contain contextual info: Teams_windows_x64
2021-03-22 20:52:21> UpdateManager: using rootAppDirectory: C:\Users\username\AppData\Local\Microsoft\Teams
2021-03-22 20:52:21> Program: About to install to: C:\Users\username\AppData\Local\Microsoft\Teams
2021-03-22 20:52:21> Program: Install path C:\Users\username\AppData\Local\Microsoft\Teams already exists, burning it to the ground
2021-03-22 20:52:21> IEnableLogger: : System.ComponentModel.Win32Exception (0x80004005): Access is denied
at System.Diagnostics.Process.Kill()
at Squirrel.UpdateManager.InstallHelperImpl.<>c__DisplayClass8_1.<KillAllProcessesBelongingToPackage>b__2()
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)
2021-03-22 20:52:22> Program: Setup.json exist, copying over
2021-03-22 20:52:22> RegistryService: RegKeyExists: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run does not have TeamsMachineInstaller
2021-03-22 20:52:22> Program: CheckMsiAndTryAddInstallSource: Not MSI, no need to add HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\InstallSource
2021-03-22 20:52:22> 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\username\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-03-22 20:52:22> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\username\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-03-22 20:52:22> CheckForUpdateImpl: Reading RELEASES file from C:\Users\username\AppData\Local\SquirrelTemp
2021-03-22 20:52:22> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2021-03-22 20:52:22> ApplyReleasesImpl: No delta packages found. Applying current release package.
2021-03-22 20:52:22> ApplyReleasesImpl: getting squirrel aware apps failed with exception Could not find a part of the path 'C:\Users\username\AppData\Local\Microsoft\Teams\current'.
2021-03-22 20:52:22> ApplyReleasesImpl: Writing files to app directory: C:\Users\username\AppData\Local\Microsoft\Teams\current
2021-03-22 20:52:25> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\username\AppData\Local\Microsoft\Teams\current\Teams.exe]
2021-03-22 20:52:42> ApplyReleasesImpl: Couldn't run Squirrel hook, continuing: C:\Users\username\AppData\Local\Microsoft\Teams\current\Teams.exe: System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at Squirrel.Utility.<>c__DisplayClass12_0.<InvokeProcessAsync>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.<InvokeProcessAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass21_1.<<invokePostInstall>b__2>d.MoveNext()
2021-03-22 20:52:42> ApplyReleasesImpl: About to RemoveOldShorcuts for Teams.exe, rootAppDir C:\Users\username\AppData\Local\Microsoft\Teams
2021-03-22 20:52:42> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Policies\Microsoft\Cloud\Office\16.0\Teams does not exist
2021-03-22 20:52:42> ApplyReleasesImpl: Registry value Software\Policies\Microsoft\Cloud\Office\16.0\Teams\PreventFirstLaunchAfterInstall does not exist
2021-03-22 20:52:42> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Teams does not exist
2021-03-22 20:52:42> ApplyReleasesImpl: Registry value Software\Policies\Microsoft\Office\16.0\Teams\PreventFirstLaunchAfterInstall does not exist
2021-03-22 20:52:42> RegistryService: RegKeyExists: HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Teams does not exist
2021-03-22 20:52:42> ApplyReleasesImpl: Registry value Software\Microsoft\Office\16.0\Teams\PreventFirstLaunchAfterInstall does not exist
2021-03-22 20:52:42> ApplyReleasesImpl: Registry flags are not set: proceed with default value NotConfigured
2021-03-22 20:52:43> ApplyReleasesImpl: Starting fixPinnedExecutables
2021-03-22 20:52:43> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2021-03-22 20:52:43> ApplyReleasesImpl: Examining Pin: Microsoft Edge.lnk
2021-03-22 20:52:43> ApplyReleasesImpl: Examining Pin: Windows PowerShell.lnk
2021-03-22 20:52:43> ApplyReleasesImpl: Fixing up tray icons
2021-03-22 20:52:43> 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-03-22 20:52:43> 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-03-22 20:52:43> MeetingAddinInstaller: System.ArgumentException: Cannot delete a subkey tree because the subkey 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-03-22 20:52:43> MeetingAddinInstaller: StagedAppDirectory does not exist. Using Current
2021-03-22 20:52:43> MeetingAddinInstaller: There is no version.txt. Falling back to getting version from folder name
2021-03-22 20:52:43> MeetingAddinInstaller: Version: 1.0.20339.4; addinPackageDirectory: 1.0.20339.4
2021-03-22 20:52:43> MeetingAddinInstaller: .dead exists: False
2021-03-22 20:52:43> MeetingAddinInstaller: path to .dead: C:\Users\username\AppData\Local\Microsoft\TeamsMeetingAddin\1.0.20339.4\.dead
2021-03-22 20:52:43> MeetingAddinInstaller: before cleanup unused versions
2021-03-22 20:52:43> MeetingAddinInstaller: Addin directory exists. Copy was successful
2021-03-22 20:52:43> MeetingAddinInstaller: Version 1.0.20339.4 of the meeting add-in is now installed
2021-03-22 20:52:43> PresenceAddinInstaller: Installing Teams Presence addin for Outlook...
2021-03-22 20:52:43> PresenceAddinInstaller: check if UC TypeLib points to current\resources\assets\tlb\Uc.tlb
2021-03-22 20:52:43> PresenceAddinInstaller: UC Typelib WIN32 is registered under HKCU and file exists. Registration not needed!
2021-03-22 20:52:43> PresenceAddinInstaller: UC Typelib WIN64 is registered under HKLM and file exists. Registration not needed!
2021-03-22 20:52:43> ApplyReleasesImpl: cleanDeadVersions: for original version of and current version of 1.4.00.7174
2021-03-22 20:52:43> ApplyReleasesImpl: cleanDeadVersions: exclude current folder stage
2021-03-22 20:52:45> RegistryService: TryDeleteRegKey: HKEY_CURRENT_USER\Software\Microsoft\Office\Teams not found

1 Reply
Hello, I haven't looked closer at the log you posted tbh. But try deleting all content at the locations in the link below and reinstall.

https://docs.microsoft.com/en-us/microsoftteams/get-clients#windows

If you experience the same issue, try installing another version of Teams https://techcommunity.microsoft.com/t5/microsoft-teams/force-teams-desktop-client-update/m-p/2056566

As you'll see that is not a supported procedure as you can end up in another ring not being "supported" but after next automatic update that should be fine anyway, and I know several people being helped by following the steps provided (clear locations and reinstall).