vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Check for update menu is missing when running as admin

Open IgorKozarchuk opened this issue 1 year ago • 9 comments

Type: Bug

"Check for update" is missing if Settings and Help menus. Even after ucncheking "Enable Windows Background Updates" and setting Update Mode to manual is Settings.

VS Code version: Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-04T04:38:16.462Z) OS version: Windows_NT x64 10.0.22000 Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz (8 x 2496)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.87GB (9.52GB free)
Process Argv --crash-reporter-id a61b9de4-afba-4ad2-a42d-cbfa86a6d05b
Screen Reader no
VM 0%
Extensions (5)
Extension Author (truncated) Version
select-highlight-minimap mde 0.1.0
formate Mik 1.2.1
python ms- 2022.12.0
vscode-pylance ms- 2022.8.10
sqlite-viewer qwt 0.1.5

(3 theme extensions excluded)

IgorKozarchuk avatar Aug 09 '22 09:08 IgorKozarchuk

Are you running VS Code as an administrator? If so, please close all instances and start one without elevation.

gjsjohnmurray avatar Aug 09 '22 10:08 gjsjohnmurray

Yes, I am using it as Admin. How do I start one without elevation?

IgorKozarchuk avatar Aug 09 '22 10:08 IgorKozarchuk

On my Windows, starting an app from the Start button starts it unelected by default, and I have to take extra action if I want it to run as administrator.

gjsjohnmurray avatar Aug 09 '22 10:08 gjsjohnmurray

I guess they just removed this menu item in v 1.70.0 of VS Code.

IgorKozarchuk avatar Aug 09 '22 10:08 IgorKozarchuk

It is no longer offered on a user-type Windows install (as opposed to a system-type install) if you are running it as administrator. See #155631

gjsjohnmurray avatar Aug 09 '22 10:08 gjsjohnmurray

OK, thanks!

IgorKozarchuk avatar Aug 09 '22 10:08 IgorKozarchuk

Maybe it's better to show an error message and documentation link, instead of hiding the menu item. The number of issues related to this makes me feel running Code with Admin is pretty common.

yume-chan avatar Aug 09 '22 11:08 yume-chan

Maybe it's better to show an error message and documentation link, instead of hiding the menu item. The number of issues related to this makes me feel running Code with Admin is pretty common.

Pinging @joaomoreno

gjsjohnmurray avatar Aug 09 '22 11:08 gjsjohnmurray

Same here

Am I get it right - if a user installed vscode using the user installer, so he will no longer be able to update unless he turns off admin rights or unless he installs the system version? // Genius, some programmers have windows garbage disabled, like uac and admin's prompts, so there is no option to run programs without elevation, whatever..


System setup: https://code.visualstudio.com/docs/?dv=win64

Just installed it with overwriting the user version, it solves the problem and saves the settings & extensions 👍

b5414 avatar Aug 09 '22 13:08 b5414

Just want to add my unique case.

VS Code is installed in C:\Program Files(x86)\. Files in that directory can't be accessed without admin permission. Thus I can't install the update normally because it results in an Access denied error and I can't update as admin because yeah there's no way to check. It also doesn't automatically check when run in admin mode

wayaway-jtm avatar Aug 12 '22 14:08 wayaway-jtm

@wayaway-jtm why did you install from the User Installer and not from the System Installer, which is listed at https://code.visualstudio.com/#alt-downloads ?

gjsjohnmurray avatar Aug 12 '22 15:08 gjsjohnmurray

More info at https://code.visualstudio.com/docs/setup/windows#_user-setup-versus-system-setup

gjsjohnmurray avatar Aug 12 '22 15:08 gjsjohnmurray

thanks,this issue helps me,not run vscode as administrator

zqy233 avatar Aug 20 '22 14:08 zqy233

Using the User Setup, updates will be disabled if Code is launched as an Administrator. You need to launch as your usual user in order to get the background updates, so the permissions are respected.

Alternatively, you can install the System Setup.

joaomoreno avatar Aug 22 '22 12:08 joaomoreno