SOLVED

Teams installation is failed

%3CLINGO-SUB%20id%3D%22lingo-sub-289426%22%20slang%3D%22en-US%22%3ETeams%20installation%20is%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289426%22%20slang%3D%22en-US%22%3E%3CP%3Ei%20got%20below%20issue%20while%20installing.%20Please%20help%20me.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20360px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60347iB3EA24BBC78F19B4%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Screenshot_11.png%22%20title%3D%22Screenshot_11.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E2018-07-12%2020%3A12%3A28%26gt%3B%20Program%3A%20Starting%20Squirrel%20Updater%3A%20--install%20.%3CBR%20%2F%3E2018-07-12%2020%3A12%3A29%26gt%3B%20Program%3A%20Starting%20install%2C%20writing%20to%20C%3A%5CUsers%5CAdmin%5CAppData%5CLocal%5CSquirrelTemp%3CBR%20%2F%3E2018-07-12%2020%3A12%3A29%26gt%3B%20UpdateManager%3A%20using%20rootAppDirecotry%3A%20C%3A%5CUsers%5CAdmin%5CAppData%5CLocal%5CMicrosoft%5CTeams%3CBR%20%2F%3E2018-07-12%2020%3A12%3A29%26gt%3B%20Program%3A%20About%20to%20install%20to%3A%20C%3A%5CUsers%5CAdmin%5CAppData%5CLocal%5CMicrosoft%5CTeams%3CBR%20%2F%3E2018-07-12%2020%3A12%3A29%26gt%3B%20CheckForUpdateImpl%3A%20Couldn't%20write%20out%20staging%20user%20ID%2C%20this%20user%20probably%20shouldn't%20get%20beta%20anything%3A%20System.IO.DirectoryNotFoundException%3A%20Could%20not%20find%20a%20part%20of%20the%20path%20'C%3A%5CUsers%5CAdmin%5CAppData%5CLocal%5CMicrosoft%5CTeams%5Cpackages%5C.betaId'.%3CBR%20%2F%3Eat%20System.IO.__Error.WinIOError(Int32%20errorCode%2C%20String%20maybeFullPath)%3CBR%20%2F%3Eat%20System.IO.FileStream.Init(String%20path%2C%20FileMode%20mode%2C%20FileAccess%20access%2C%20Int32%20rights%2C%20Boolean%20useRights%2C%20FileShare%20share%2C%20Int32%20bufferSize%2C%20FileOptions%20options%2C%20SECURITY_ATTRIBUTES%20secAttrs%2C%20String%20msgPath%2C%20Boolean%20bFromProxy%2C%20Boolean%20useLongPath%2C%20Boolean%20checkHost)%3CBR%20%2F%3Eat%20System.IO.FileStream..ctor(String%20path%2C%20FileMode%20mode%2C%20FileAccess%20access%2C%20FileShare%20share%2C%20Int32%20bufferSize%2C%20FileOptions%20options%2C%20String%20msgPath%2C%20Boolean%20bFromProxy%2C%20Boolean%20useLongPath%2C%20Boolean%20checkHost)%3CBR%20%2F%3Eat%20System.IO.StreamWriter.CreateFile(String%20path%2C%20Boolean%20append%2C%20Boolean%20checkHost)%3CBR%20%2F%3Eat%20System.IO.StreamWriter..ctor(String%20path%2C%20Boolean%20append%2C%20Encoding%20encoding%2C%20Int32%20bufferSize%2C%20Boolean%20checkHost)%3CBR%20%2F%3Eat%20System.IO.File.InternalWriteAllText(String%20path%2C%20String%20contents%2C%20Encoding%20encoding%2C%20Boolean%20checkHost)%3CBR%20%2F%3Eat%20System.IO.File.WriteAllText(String%20path%2C%20String%20contents%2C%20Encoding%20encoding)%3CBR%20%2F%3Eat%20Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()%3CBR%20%2F%3E2018-07-12%2020%3A12%3A29%26gt%3B%20CheckForUpdateImpl%3A%20Failed%20to%20load%20local%20releases%2C%20starting%20from%20scratch%3A%20System.IO.DirectoryNotFoundException%3A%20Could%20not%20find%20a%20part%20of%20the%20path%20'C%3A%5CUsers%5CAdmin%5CAppData%5CLocal%5CMicrosoft%5CTeams%5Cpackages%5CRELEASES'.%3CBR%20%2F%3Eat%20System.IO.__Error.WinIOError(Int32%20errorCode%2C%20String%20maybeFullPath)%3CBR%20%2F%3Eat%20System.IO.FileStream.Init(String%20path%2C%20FileMode%20mode%2C%20FileAccess%20access%2C%20Int32%20rights%2C%20Boolean%20useRights%2C%20FileShare%20share%2C%20Int32%20bufferSize%2C%20FileOptions%20options%2C%20SECURITY_ATTRIBUTES%20secAttrs%2C%20String%20msgPath%2C%20Boolean%20bFromProxy%2C%20Boolean%20useLongPath%2C%20Boolean%20checkHost)%3CBR%20%2F%3Eat%20System.IO.FileStream..ctor(String%20path%2C%20FileMode%20mode%2C%20FileAccess%20access%2C%20FileShare%20share)%3CBR%20%2F%3Eat%20Squirrel.Utility.LoadLocalReleases(String%20localReleaseFile)%3CBR%20%2F%3Eat%20Squirrel.UpdateManager.CheckForUpdateImpl.%3CCHECKFORUPDATE%3Ed__43.MoveNext()%3CBR%20%2F%3E2018-07-12%2020%3A12%3A29%26gt%3B%20CheckForUpdateImpl%3A%20Reading%20RELEASES%20file%20from%20C%3A%5CUsers%5CAdmin%5CAppData%5CLocal%5CSquirrelTemp%3CBR%20%2F%3E2018-07-12%2020%3A12%3A29%26gt%3B%20CheckForUpdateImpl%3A%20First%20run%20or%20local%20directory%20is%20corrupt%2C%20starting%20from%20scratch%3CBR%20%2F%3E2018-07-12%2020%3A12%3A29%26gt%3B%20ApplyReleasesImpl%3A%20getting%20squirrel%20aware%20apps%20failed%20with%20exception%20Could%20not%20find%20a%20part%20of%20the%20path%20'C%3A%5CUsers%5CAdmin%5CAppData%5CLocal%5CMicrosoft%5CTeams%5Ccurrent'.%3CBR%20%2F%3E2018-07-12%2020%3A12%3A29%26gt%3B%20ApplyReleasesImpl%3A%20Writing%20files%20to%20app%20directory%3A%20C%3A%5CUsers%5CAdmin%5CAppData%5CLocal%5CMicrosoft%5CTeams%5Ccurrent%3CBR%20%2F%3E2018-07-12%2020%3A12%3A44%26gt%3B%20ApplyReleasesImpl%3A%20Squirrel%20Enabled%20Apps%3A%20%5BC%3A%5CUsers%5CAdmin%5CAppData%5CLocal%5CMicrosoft%5CTeams%5Ccurrent%5CTeams.exe%5D%3CBR%20%2F%3E2018-07-12%2020%3A12%3A55%26gt%3B%20ApplyReleasesImpl%3A%20Starting%20fixPinnedExecutables%3CBR%20%2F%3E%26nbsp%3B%3C%2FCHECKFORUPDATE%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-289426%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EInstallation%20has%20failed%20check%20the%20setup%20log%20for%20more%20information.%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-308878%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20installation%20is%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-308878%22%20slang%3D%22en-US%22%3E%3CP%3EI%20just%20cut%2FDelete%20the%20Teams%20folder%20from%20%3CSPAN%3EC%3A%5CUsers%5CAdmin%5CAppData%5CLocal%5C%20and%20pasted%20it%20some%20other%20location%20and%20installed%20the%20Teams.%20its%20worked.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-308877%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20installation%20is%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-308877%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20I%20tried.%20but%20its%20not%20worked.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-308818%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20installation%20is%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-308818%22%20slang%3D%22en-US%22%3Ethat%20is%20an%20assumption%20%3B)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-308816%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20installation%20is%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-308816%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EC%3A%5CUsers%5CAdmin%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Eyes%20I%20would%20say%20so....%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ERun%20it%20as%20the%20user%2C%20Teams%20need%20to%20run%20in%20the%20context%20of%20a%20logged%20in%20user.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-308379%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20installation%20is%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-308379%22%20slang%3D%22en-US%22%3Edid%20you%20run%20the%20executable%20as%20administrator%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-466045%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20installation%20is%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-466045%22%20slang%3D%22en-US%22%3E%3CP%3EMake%20sure%20you%20have%2064-bit%20office%20installed%20as%20well%20if%20you%20are%20going%20to%20use%20a%20a%2064-bit%20version%20of%20teams%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F244406%22%20target%3D%22_blank%22%3E%40Reddy7%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1274628%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20installation%20is%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1274628%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F244406%22%20target%3D%22_blank%22%3E%40Reddy7%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1275095%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20installation%20is%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1275095%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F244406%22%20target%3D%22_blank%22%3E%40Reddy7%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20you%20installing%20it%20for%20multiple%20users%20and%20do%20you%20have%20a%20software%20restriction%20policy%20in%20place%3F%3C%2FP%3E%3CP%3EIs%20so%20you%20would%20simply%20use%20the%20variable%20%25LOCALAPPDATA%25%5CTeams%5C%20to%20allow%20everything%20you%20need%20these%20below%3A%3C%2FP%3E%3CP%3E%25LOCALAPPDATA%25%5CTeams%5C%3C%2FP%3E%3CP%3ETeams.exe%3C%2FP%3E%3CP%3E%25LOCALAPPDATA%25%5CMicrosoft%5CTeams%5C%3C%2FP%3E%3CP%3E%25LOCALAPPDATA%25%5CSquirrelTemp%5CUpdate.exe%3C%2FP%3E%3CP%3Eteams_windows_x64.exe%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1762000%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20installation%20is%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1762000%22%20slang%3D%22en-US%22%3E%3CP%3EHey%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F244406%22%20target%3D%22_blank%22%3E%40Reddy7%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20have%20been%20looking%20for%20a%20solution%20to%20this%20problem%20and%20I've%20tried%20almost%20every%20possible%20solution%20available%20on%20the%20internet%20from%20deleting%20the%20folders%20to%20clearing%20registries%20etc.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20only%20resolution%20I%20found%20was%20to%20copy%20these%20three%20folders%20%3CEM%3ETeams%3C%2FEM%3E%2C%20%3CEM%3ETeamsMeetingAddin%3C%2FEM%3E%20and%20%3CEM%3ETeamsPresenceAddin%3C%2FEM%3E%20from%20someone%20who%20has%20a%20working%20Teams%20Desktop%20application%20(in%20my%20case%20I%20needed%20it%20from%20a%20Windows%20user)%20and%20paste%20it%20in%20the%20given%20location.%20C%3A%5CUsers%5C%3CUSER%3E%5CAppData%5CLocal%5CMicrosoft.%26nbsp%3B%3CBR%20%2F%3EI%20tried%20this%20solution%20because%20I%20saw%20an%20error%20related%20to%20this%20location%20in%20my%20SquirrelSetup%20logs.%26nbsp%3B%3CBR%20%2F%3EAlthough%20this%20is%20a%20very%20old%20post%20but%20perhaps%20this%20can%20help%20someone%20like%20me%20who%20is%20looking%20for%20a%20solution.%20%3A)%3C%2Fimg%3E%3C%2FUSER%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

i got below issue while installing. Please help me.Screenshot_11.png

2018-07-12 20:12:28> Program: Starting Squirrel Updater: --install .
2018-07-12 20:12:29> Program: Starting install, writing to C:\Users\Admin\AppData\Local\SquirrelTemp
2018-07-12 20:12:29> UpdateManager: using rootAppDirecotry: C:\Users\Admin\AppData\Local\Microsoft\Teams
2018-07-12 20:12:29> Program: About to install to: C:\Users\Admin\AppData\Local\Microsoft\Teams
2018-07-12 20:12: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\Admin\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()
2018-07-12 20:12:29> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Admin\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__43.MoveNext()
2018-07-12 20:12:29> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Admin\AppData\Local\SquirrelTemp
2018-07-12 20:12:29> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2018-07-12 20:12:29> ApplyReleasesImpl: getting squirrel aware apps failed with exception Could not find a part of the path 'C:\Users\Admin\AppData\Local\Microsoft\Teams\current'.
2018-07-12 20:12:29> ApplyReleasesImpl: Writing files to app directory: C:\Users\Admin\AppData\Local\Microsoft\Teams\current
2018-07-12 20:12:44> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Admin\AppData\Local\Microsoft\Teams\current\Teams.exe]
2018-07-12 20:12:55> ApplyReleasesImpl: Starting fixPinnedExecutables
 

8 Replies
Highlighted
did you run the executable as administrator?
Highlighted

C:\Users\Admin

 

yes I would say so....

 

Run it as the user, Teams need to run in the context of a logged in user.

Highlighted
that is an assumption ;)
Highlighted

Yes, I tried. but its not worked.

Highlighted
Best Response confirmed by Erwin Bierens (MVP)
Solution

I just cut/Delete the Teams folder from C:\Users\Admin\AppData\Local\ and pasted it some other location and installed the Teams. its worked. 

Highlighted
Highlighted

@Reddy7 

Are you installing it for multiple users and do you have a software restriction policy in place?

Is so you would simply use the variable %LOCALAPPDATA%\Teams\ to allow everything you need these below:

%LOCALAPPDATA%\Teams\

Teams.exe

%LOCALAPPDATA%\Microsoft\Teams\

%LOCALAPPDATA%\SquirrelTemp\Update.exe

teams_windows_x64.exe

 

Highlighted

Hey @Reddy7 ,

I have been looking for a solution to this problem and I've tried almost every possible solution available on the internet from deleting the folders to clearing registries etc. 

The only resolution I found was to copy these three folders Teams, TeamsMeetingAddin and TeamsPresenceAddin from someone who has a working Teams Desktop application (in my case I needed it from a Windows user) and paste it in the given location. C:\Users\<user>\AppData\Local\Microsoft. 
I tried this solution because I saw an error related to this location in my SquirrelSetup logs. 
Although this is a very old post but perhaps this can help someone like me who is looking for a solution. :)