When vscode is updated, the error Failed to install visual Studio Code update. Updates may fail due to anti-virus software

When vscode is updated, the error Failed to install visual Studio Code update. Updates may fail due to anti-virus software

insert image description here

insert image description here

The reason for the error: vscode is installed in another location, and the location of the c drive failed to be detected during the update

Solution:

1. Find: the location of vscode on the C drive: C:Users\86150AppDatalLocal\Programs\Microsoft vs code\Code.exe
2. Find the real location of vscode: right-click the vscode icon, open the location of the
insert image description here
file and copy the code.exe file to c Disk location
insert image description here
insert image description here
successfully resolved
insert image description here

Guess you like

Origin blog.csdn.net/weixin_45822938/article/details/123852780
Recommended