Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code Failed to Install Visual Studio Code Update

I am trying to update my VS Code but am getting an error message: Updates may fail due to anti virus software and/or runaway processes.

A log file stemming from my Users was attached, but I am not sure what to check for. I am still new to computers and programming.

like image 221
romanxyz123 Avatar asked Mar 03 '26 06:03

romanxyz123


2 Answers

Run the update setup file, with a name like "CodeSetup-stable-...exe", in the following location:

C:\Users\<:User>\AppData\Local\Temp\vscode-update-system-x64

Replace <:User> with your username. And make sure VS Code is closed.

The same problem happened to me as well. It was because I installed VS Code in another directory other than the default location. The problem happened because after downloading the update in the Temp directory, VS Code tried to locate the previous installation in the default location to update it. As it failed, the update setup file remained with the temporary files. The problem was solved by manually installing the update.

I copied the Code.exe file from where my program was installed and pasted it to the temp map:

C:\Users\YOUR_USERNAME\AppData\Local\Programs\Microsoft VS Code

I reran the update and it works.

like image 38
Aventis Avatar answered Mar 05 '26 08:03

Aventis