Unable to install teams?

skye 1 Reputation point
2020-10-02T14:15:34.03+00:00

I am unable to install teams, whenever I try to run the installer a popup that says update.exe not found comes up, and when I view setup logs it shows the following. any insight to why this might be happening will be very helpful. if it is of any use, attempting to install discord gives the exact same error popup.

Program: Starting Squirrel Updater: --install . --checkInstall --source=PROPLUS --silent --exeName=Teams.exe
Program: Starting install, writing to C:\Users\user\AppData\Local\SquirrelTemp
UpdateManager: using rootAppDirectory: C:\Users\user\AppData\Local\Microsoft\Teams
Program: About to install to: C:\Users\user\AppData\Local\Microsoft\Teams
Program: Setup.json exist, copying over
Program: File does not contain contextual info: Teams.exe
RegistryService: RegKeyExists: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run has TeamsMachineInstaller. Data - C:\Program Files (x86)\Teams Installer\Teams.exe --checkInstall --source=PROPLUS
RegistryService: TrySetRegKey: HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\InstallSource created
RegistryService: TrySetRegKey: HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\InstallSource set successfully as MSI
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\user\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()
CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\user\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__2.MoveNext()
CheckForUpdateImpl: Reading RELEASES file from C:\Users\user\AppData\Local\SquirrelTemp
CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
ApplyReleasesImpl: No delta packages found. Applying current release package.
ApplyReleasesImpl: getting squirrel aware apps failed with exception Could not find a part of the path 'C:\Users\user\AppData\Local\Microsoft\Teams\current'.
ApplyReleasesImpl: Writing files to app directory: C:\Users\user\AppData\Local\Microsoft\Teams\current
ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\user\AppData\Local\Microsoft\Teams\current\Teams.exe]
RegistryService: TryGetRegKey: HKEY_CURRENT_USER\Software\Policies\Microsoft\Cloud\Office\16.0\Teams does not exist
ApplyReleasesImpl: Registry value Software\Policies\Microsoft\Cloud\Office\16.0\Teams\PreventFirstLaunchAfterInstall is not set
RegistryService: TryGetRegKey: HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Teams does not exist
ApplyReleasesImpl: Registry value Software\Policies\Microsoft\Office\16.0\Teams\PreventFirstLaunchAfterInstall is not set
RegistryService: TryGetRegKey: HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Teams does not exist
ApplyReleasesImpl: Registry value Software\Microsoft\Office\16.0\Teams\PreventFirstLaunchAfterInstall is not set
ApplyReleasesImpl: Registry flags are not set: proceed with default value False
ApplyReleasesImpl: Starting fixPinnedExecutables
ApplyReleasesImpl: Examining Pin: File Explorer.lnk
ApplyReleasesImpl: Fixing up tray icons
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__19_0(RegistryView view)
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__19_0(RegistryView view)
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()
MeetingAddinInstaller: StagedAppDirectory does not exist. Using Current
MeetingAddinInstaller: Version: 1.0.19231.3; addinPackageDirectory: 1.0.19231.3
MeetingAddinInstaller: .dead exists: False
MeetingAddinInstaller: path to .dead: C:\Users\user\AppData\Local\Microsoft\TeamsMeetingAddin\1.0.19231.3.dead
MeetingAddinInstaller: before cleanup unused versions
MeetingAddinInstaller: Addin directory exists. Copy was successful
MeetingAddinInstaller: Version 1.0.19231.3 of the meeting add-in is now installed
PresenceAddinInstaller: check if UC TypeLib points to current\resources\assets\tlb\Uc.tlb
ApplyReleasesImpl: cleanDeadVersions: for version 1.2.00.24753
ApplyReleasesImpl: cleanDeadVersions: exclude folder stage

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,156 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,056 Reputation points Microsoft Vendor
    2020-10-05T03:33:29.897+00:00

    @skye ,

    What is your device information?

    Do you try in other machines?
    Does anyone else have the same issue with yours?

    Uninstall Teams and remove files from the following locations:

    • %LocalAppData%\Microsoft\Teams
    • %LocalAppData%\Microsoft\TeamsMeetingsAddin
    • %AppData%\Microsoft\Teams
    • %LocalAppData%\SquirrelTemp

    Then, perform a clean boot to exclude whether a background program is interfering with Teams if your system is Windows.
    Try to install Teams again.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

  2. Michael Vi 1 Reputation point
    2020-10-04T11:49:16.107+00:00

    Hi,
    Where are you installing the file from i.e. c:\temp?
    Is this a personal or corporate device?
    The log shows several reg keys is not present, so what if you copy the key from another machine, will it install?

    By default, all users should have the ability to install the Teams app as it goes to your c:\users\<username>\ etc so I'm wondering if you have the rights to install. If it is personal what happen if you launch cmd as admin and run the installation, does it install?


  3. Anonymous
    2023-10-10T11:36:52.8366667+00:00

    Thank you @Sharon Zhao-MSFT , your solution worked for me