vscode installed in other directory gives access denied error

TessavWalstijn

I recently reinstalled my windows 10
For easy software management I chose to install all my software in the following directories:

  • C:\Program Files\
  • C:\Program Files (x86)

This meant installing vscode and vscode-insiders on the C:\Program Files\
instead of the default C:\Users\User\AppData\...\

However when I am working I get notified with the following popup:
Error, Access is denied

clicking > Try again gives the same popup instantly
clicking > Cancel installation removes the popup for a short period
clicking > Skip this file keeps giving kind of the same access is denied error

TessavWalstijn

The error comes from vscode wanting to update in the background.
The C:\Program Files\ and C:\Program Files (x86) are restricted to admin
So running vscode in admin mode will fix this issue.

To make sure vscode runs in admin mode via this:
Open with Code

We need to make sure it always runs in admin mode:

Opening the Code.exe with properties (right click and then properties).
Switch to the Compatibility tab and tick the box before:
Run this program as an administrator
Remember do this only when you know what you are doing.
Your are giving admin / sudo powers to vscode

enter image description here

This will fix the popup error.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Overwrite directory with shutil.rmtree and os.mkdir sometimes gives 'Access is denied' error

MySQL - ERROR 1045 - Access denied

OpenERP Server Error Access denied

AttachConsole Error 5: Access is denied

Nuget add packages gives access denied errors

Running dockerd gives error "open //./pipe/docker_engine: Access is denied." (Windows Server 1709)

Debug in Visual Studio 2017 gives access denied

Access denied error when trying to save file to directory

pythonnet dll directory access denied

ssh in vscode error: Permission denied (publickey,password)

accessing path through cloudfront gives access denied

FireFox won't launch, "Error: Access was denied while trying to open files in your profile directory"

Chrooted sftp gives "Permission denied" error

mysqlfailover command gives Error 1045: Access denied for user 'root'@'localhost' (using password: NO)

Anglular gives access denied to mymodal.html

MySQL error access denied

rmdir dir gives error 'Not a directory'

Why the prompt gives me "Access denied"?

Access Denied Error When i try to add New Virtual Directory using Console Application

Error apache : access denied

PSSession Access Denied Error

Check if Access 2010 installed gives exeption

How to rename IIS website directory with Powershell (Access denied error)

Build Solution in Visual Studio 2015 gives error "Error generating Win32 resource: Access is denied"

FreeIPA to Active Directory trust not working:Access denied error

Remove Directory function access denied

UWP Access to the Installed Location is denied

I created a subdomain and when I try to reach it , it gives access denied error

VSCode gives "Install Python" error even if it is installed