Fix: Visual Studio Code unins000.exe Access is denied error

avatar
Borislav Hadzhiev

Last updated: Apr 6, 2024
2 min

banner

# Fix: Visual Studio Code unins000.exe Access is denied error

There are 2 common ways to solve the VS Code unins000.exe Access is denied error:

  1. Allow full control access to your users.
  2. Configure VS Code to open with administrative privileges.
shell
C:\Users\Borislav\AppData\Local\Programs\Microsoft VS Code\unins000.exe An error occurred while trying to create a file in the destination directory: Access is denied.

The error occurs for 2 main reasons:

  1. Not having the necessary permissions to run VS Code.
  2. VS Code trying to update in the background and requiring administrative privileges.

The error message should contain the path to your VS Code installation.

The path might be something similar to:

  • C:\Program Files\Microsoft VS Code
  • or C:\Users\Borislav\AppData\Local\Programs\Microsoft VS Code
  1. Either way, open the directory that contains the Microsoft VS Code folder and right-click on the folder.

  2. Select Properties.

right click select properties

  1. Click on the Security tab and then click Edit.

click security tab and edit

  1. Click Users from the Group or user names menu.

allow full control access for users

  1. Tick the Full control checkbox and click Apply and then OK.

# Running VS Code as an administrator

An alternative approach to solving the error is to run VS Code as an administrator.

  1. Open the Microsoft VS Code folder (the folder that contains your Code.exe file).

  2. Right-click on the Code.exe file and select Properties.

right click vscode executable select properties

  1. Click on the Compatibility tab and tick the Run this program as an administrator checkbox.

run vscode as administrator

  1. Click on Apply and then click OK.

Alternatively, you can:

  1. Click on the search field and type visual studio code.

search vscode

  1. Right-click on the Visual Studio Code application and select Run as administrator.

# Additional Resources

You can learn more about the related topics by checking out the following tutorials:

I wrote a book in which I share everything I know about how to become a better, more efficient programmer.
book cover
You can use the search field on my Home Page to filter through all of my articles.