Can't Install local user update due to `\\bin` folder being used by another process
See original GitHub issueThere was an error while deleting a directory:
%LOCALAPPDATA%\Programs\Microsoft VS Code\bin
: the process cannot access the file because it is being used by another process…
- VSCode Version: 1.2.7.2 (user setup)
- OS Version: Windows 10
Steps to Reproduce:
- when an update is available, click Install Update
Does this issue occur when all extensions are disabled?: cannot try this because installation is disabled/destroyed due to incomplete setup
Workaround: will go back to system installs instead of local user installs.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:36
- Comments:97 (8 by maintainers)
Top Results From Across the Web
Cannot access file bin/Debug/... because it is being used by ...
My original workaround was opening up the bin/Debug folder and renaming the executable. You can't delete it if it's locked, ...
Read more >"File is being used by another process" error - TechNet
Hi,. I need some help tracking down this error. "Unable to copy file XXXX.dll. The process cannot access the file XXX.dll because it...
Read more >FIX The Process Cannot Access the File Because It ... - YouTube
FIX The Process Cannot Access the File Because It Is Being Used by Another ... stop httpnet start httpSeveral Windows users are encount......
Read more >HubSpot Sales for Windows tray app install error: 'Process ...
HubSpot Sales for Windows tray app install error: 'Process cannot access file because it is being used by another process'. Last updated: October...
Read more >The Action Cannot Be Completed Because the File is Open: Fix
A quick way to fix the issue is to end and restart the activities of the File Explorer from the Task Manager. Another...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK. I was able to repro this in @sergiusignacius’s machine. Weirdly enough, it repros 100% of the time when Skype for Business is running. It doesn’t repro when Skype for Business isn’t running.
Any of you guys have Skype for Business?
Investigating…
I found what was causing it by more research, Have a look at antivirus protection software you may have and look for ransomware protection or exploit protection and temporarily disable them. As in my case, it was locking the folders to make sure viruses could not change or delete folders! All good now, hope it helps others!