Hi,
We use PatchMyPC to manage updates to VSCode. Unfortunately, a recent update ("Update for Microsoft Visual Studio Code 1.72.1 (x64)") broke our users' installations.
I've attached an image of the error message presented. Fully uninstalling and reinstalling the product is the only way that we've been able to fix this.
image (2).png
Any ideas on fixing?
Hello
This is a known issue with Visual Studio Code if it is patched while open. We document this here as a title to close before patching, which can be achieved using the Manage Conflicting Processes (https://patchmypc.com/manage-conflicting-processes-when-updating-third-party-applications) feature: When to enable: Notify the user to close the application (https://patchmypc.com/manage-conflicting-processes-when-updating-third-party-applications#topic4).
We also opened a GitHub issue on the repository for the software that might be worth sharing: Failed to update: An error occurred while trying to replace the existing file, DeleteFile failed; code 5, Access is denied. (https://github.com/microsoft/vscode/issues/146538)
Sometimes, things can go wrong. If your Visual Studio installation fails, see Troubleshoot Visual Studio installation and upgrade issues for step-by-step guidance.
Here are a few more support options:
We also offer an installation chat (English only) support option for installation-related issues.
Report product issues to us via the Report a Problem tool that appears both in the Visual Studio Installer and in the Visual Studio IDE. If you're an IT Administrator and don't have Visual Studio installed, you can submit IT Admin feedback here.
Suggest a feature, track product issues, and find answers in the Visual Studio Developer Community.
This may help you,
Rachel Gomez
After update VS Code you can uninstall VS Code completely and then install it again in administrator account.