microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.65k stars 28.68k forks source link

MoveFile failed; code 183 when reinstalling #209581

Open AntonioSingh opened 5 months ago

AntonioSingh commented 5 months ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Visual Studio Code pop up said to update
  2. Clicked update button but update failed
  3. When trying to reopen original shortcuts and Code.exe file it now said that I don't have the correct permissions to open it even though I'm an admin and the only user on my machine

error 2

  1. Tried to uninstall Visual Studio Code but the Code.exe file wouldn't let it be uninstalled

  2. Deleted all contents of the folder except Code.exe due to it saying I dont have permission to error 3

  3. Tried reinstalling Visual Studio Code but received the following error :

error

I've tried checking all the previous issues and posts on other sites with this same problem but have had no luck. This is pretty frustrating as it happened while I was working on a project. I've figured out that it has to be an issue with the permissions on the file since it's the only file in the original folder but am unsure how to move forward with solving that. Is there anyway I can remove this file at all so I can move forward with installation. My only solution I can think of is reinstalling in a different location on my machine but that still doesn't solve the problem of never being able to delete the original Code.exe file.

VSCodeTriageBot commented 5 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.88.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!