VS Code update fails with "Access is denied."
TPMoyer opened this issue · 3 comments
First off: Thank you for writing this script. Is WAY better than the many manual step alternative.
Small foible with the install. After opening the command prompt which sets in place the environment, using Visual Studio Code, and closing same... Visual Studio tries to peek for and install updates. This fails with
How can I go in and change permissions
to what series of directories
to allow the updates to propagate through to success?
This might be a bit late, but in order to bypass this error you need to start VS Code as Administrator.
You can do this by:
- right-click on the shortcut in the task bar and,
- right-click again on the "Visual Studio Code" shortcut,
- selecting the "Run as Administrator" option.
Once launched you can check for updates under options and it should install any found without issue.
This issue can be closed.
Thanks for documenting the issue and the fix! Closing.