question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't Install local user update due to `\\bin` folder being used by another process

See original GitHub issue

image

There 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:

  1. 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:open
  • Created 5 years ago
  • Reactions:36
  • Comments:97 (8 by maintainers)

github_iconTop GitHub Comments

19reactions
joaomorenocommented, Oct 30, 2018

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…

13reactions
81markcommented, Apr 10, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found