vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Updates not finishing

Open KevenAndrade opened this issue 9 months ago • 23 comments

Type: Bug

I shows thats updating but it never completes

VS Code version: Code 1.109.0 (bdd88df003631aaa0bcbe057cb0a940b80a476fa, 2026-02-04T02:01:38.288Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i7-1355U (12 x 2611)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0xa7a1 [Intel(R) Iris(R) Xe Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.7077 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.22621.5415
Machine model name:
Machine model version:
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_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.69GB (2.35GB free)
Process Argv --crash-reporter-id f009e5d4-b5b3-4177-9e1a-502f82f6e718
Screen Reader no
VM 0%
Extensions (15)
Extension Author (truncated) Version
dbclient-jdbc cwe 1.4.6
vscode-database-client2 cwe 8.4.5
docker doc 0.18.0
copilot-chat Git 0.37.4
vscode-github-actions git 0.31.0
rainbow-csv mec 3.24.1
vscode-containers ms- 2.4.1
vscode-docker ms- 2.0.0
debugpy ms- 2025.18.0
python ms- 2026.0.0
vscode-pylance ms- 2025.10.4
vscode-python-envs ms- 1.16.0
remote-containers ms- 0.442.0
remote-wsl ms- 0.104.3
volar Vue 3.2.4
A/B Experiments
vsliv368cf:30146710
vswsl492:30256859
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31436602
aj953862:31281341
82j33506:31327384
6abeh943:31336334
cloudbuttont:31379625
aihoversummaries_t:31453032
42190218_ostrepl:31403339
bj468946:31457056
use-responses-api:31390855
je187915:31454425
ec5jj548:31422691
cmp-ext-treat:31426748
cp_cls_t_966_ss:31454198
c0683394:31458171
ge8j1254_inline_auto_hint_haiku:31427726
nes-autoexp-off:31446584
a5gib710:31434435
38bie571_auto:31429954
rename_enabled:31436409
7a04d226_do_not_restore_last_panel_session:31438103
anthropic_thinking_c:31457102
722j7530_gpt_5_2_codex:31458091
preserve_tokens:31444546
cp_cls_c_1081:31454833
copilot-nes-oct-trt:31432596
ia-use-proxy-models-svc:31452481
nes-slash-models-on:31441832
nes-set-to-on:31441941
a43f0574:31442827
18jd0202:31460037
edit_mode_visible:31459180
864ei723_large_tool_results_to_disk:31460878
nes-extended-on:31455476
chat:31457767
ah:31460422

KevenAndrade avatar Feb 11 '26 11:02 KevenAndrade

Thanks for creating this issue! It looks like you may be using an old version of VS Code; the latest stable release is 1.109.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

I'm noticing the same behavior with 109.2 installer on my 2 test computers in our org. We're installing it silently using the following command line:

VSCodeSetup-x64.exe /VERYSILENT /NORESTART /MERGETASKS=!runcode,addcontextmenufiles,addcontextmenufolders /LOG="C:\Windows\Logs\Software\VSCodeSetup-x64-Install.log"

The installer gets stuck here:

2026-02-11 12:57:04.417 Installation process succeeded. 2026-02-11 12:57:04.417 Invoking inno_updater to remove previous installation folder

And the inno_updater process never finishes. Previously both 109.0 and 109.1 installed successfully.

obuolinis avatar Feb 11 '26 12:02 obuolinis

Can anyone tell me how to figure out what exactly inno_updater is doing and what it's waiting for? Cause as things stand in our org we're stuck in a catch 22 - Copilot chat is asking to update to 109.2 but we can't deploy 109.2 due to the installer getting stuck.

Even though I wasn't able to reproduce the problem when updating vs code version to 109.2 on a clean lab computer, same thing as described happened to my colleague.

EDIT: Found two inno_updater logs under C:\Windows\SystemTemp - one from Feb 6 (when 109.0 was installed), and another from Feb 11 (109.2).

Here's one from Feb 6 that completed successfully:

Feb 06 10:04:04.774 INFO Removing files from base directory of "C:\\Program Files\\Microsoft VS Code\\Code.exe", preserving commit folder: bdd88df003
Feb 06 10:04:04.776 INFO remove_files: "C:\\Program Files\\Microsoft VS Code\\Code.exe", commit: bdd88df003
Feb 06 10:04:04.776 INFO Reading top-level directory: "C:\\Program Files\\Microsoft VS Code"
Feb 06 10:04:04.776 INFO Skipping commit folder: "C:\\Program Files\\Microsoft VS Code\\bdd88df003"
Feb 06 10:04:04.777 INFO Processing bin directory: "C:\\Program Files\\Microsoft VS Code\\bin"
Feb 06 10:04:04.777 INFO Skipping non-old file in bin: "C:\\Program Files\\Microsoft VS Code\\bin\\code"
Feb 06 10:04:04.791 INFO Skipping non-old file in bin: "C:\\Program Files\\Microsoft VS Code\\bin\\code-tunnel.exe"
Feb 06 10:04:04.791 INFO Skipping non-old file in bin: "C:\\Program Files\\Microsoft VS Code\\bin\\code.cmd"
Feb 06 10:04:04.791 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\chrome_100_percent.pak" (attempt 1)
Feb 06 10:04:04.791 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\chrome_200_percent.pak" (attempt 1)
Feb 06 10:04:04.791 INFO Skipping code_path executable: "C:\\Program Files\\Microsoft VS Code\\Code.exe"
Feb 06 10:04:04.791 INFO Skipping VisualElementsManifest.xml: "C:\\Program Files\\Microsoft VS Code\\Code.VisualElementsManifest.xml"
Feb 06 10:04:04.791 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\d3dcompiler_47.dll" (attempt 1)
Feb 06 10:04:04.791 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\debug.log" (attempt 1)
Feb 06 10:04:04.791 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\dxcompiler.dll" (attempt 1)
Feb 06 10:04:04.791 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\dxil.dll" (attempt 1)
Feb 06 10:04:04.791 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\ffmpeg.dll" (attempt 1)
Feb 06 10:04:04.791 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\icudtl.dat" (attempt 1)
Feb 06 10:04:04.792 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\libEGL.dll" (attempt 1)
Feb 06 10:04:04.792 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\libGLESv2.dll" (attempt 1)
Feb 06 10:04:04.792 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\LICENSES.chromium.html" (attempt 1)
Feb 06 10:04:04.792 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\resources.pak" (attempt 1)
Feb 06 10:04:04.792 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\snapshot_blob.bin" (attempt 1)
Feb 06 10:04:04.792 INFO Skipping unins file: "C:\\Program Files\\Microsoft VS Code\\unins000.dat"
Feb 06 10:04:04.792 INFO Skipping unins file: "C:\\Program Files\\Microsoft VS Code\\unins000.exe"
Feb 06 10:04:04.792 INFO Skipping unins file: "C:\\Program Files\\Microsoft VS Code\\unins000.msg"
Feb 06 10:04:04.792 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\v8_context_snapshot.bin" (attempt 1)
Feb 06 10:04:04.792 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\vk_swiftshader.dll" (attempt 1)
Feb 06 10:04:04.792 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\vk_swiftshader_icd.json" (attempt 1)
Feb 06 10:04:04.792 INFO Get file handle: "C:\\Program Files\\Microsoft VS Code\\vulkan-1.dll" (attempt 1)
Feb 06 10:04:04.794 INFO Collected all directories and file handles for removal
Feb 06 10:04:04.826 INFO All file handles marked for deletion
Feb 06 10:04:05.020 INFO All files deleted
Feb 06 10:04:05.020 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\locales" (attempt 1)
Feb 06 10:04:05.312 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\policies" (attempt 1)
Feb 06 10:04:05.423 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\resources" (attempt 1)
Feb 06 10:04:21.384 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\tools" (attempt 1)
Feb 06 10:04:21.431 INFO File removal operation completed
Feb 06 10:04:21.431 INFO Successfully completed file removal operation

Here's one from Feb 11 that got stuck:

Feb 11 11:04:34.696 INFO Removing files from base directory of "C:\\Program Files\\Microsoft VS Code\\Code.exe", preserving commit folder: 591199df40
Feb 11 11:04:34.696 INFO remove_files: "C:\\Program Files\\Microsoft VS Code\\Code.exe", commit: 591199df40
Feb 11 11:04:34.697 INFO Reading top-level directory: "C:\\Program Files\\Microsoft VS Code"
Feb 11 11:04:34.697 INFO Skipping commit folder: "C:\\Program Files\\Microsoft VS Code\\591199df40"
Feb 11 11:04:34.697 INFO Processing bin directory: "C:\\Program Files\\Microsoft VS Code\\bin"
Feb 11 11:04:34.697 INFO Skipping non-old file in bin: "C:\\Program Files\\Microsoft VS Code\\bin\\code"
Feb 11 11:04:34.698 INFO Skipping non-old file in bin: "C:\\Program Files\\Microsoft VS Code\\bin\\code-tunnel.exe"
Feb 11 11:04:34.698 INFO Skipping non-old file in bin: "C:\\Program Files\\Microsoft VS Code\\bin\\code.cmd"
Feb 11 11:04:34.698 INFO Skipping code_path executable: "C:\\Program Files\\Microsoft VS Code\\Code.exe"
Feb 11 11:04:34.698 INFO Skipping VisualElementsManifest.xml: "C:\\Program Files\\Microsoft VS Code\\Code.VisualElementsManifest.xml"
Feb 11 11:04:34.698 INFO Skipping unins file: "C:\\Program Files\\Microsoft VS Code\\unins000.dat"
Feb 11 11:04:34.698 INFO Skipping unins file: "C:\\Program Files\\Microsoft VS Code\\unins000.exe"
Feb 11 11:04:34.698 INFO Skipping unins file: "C:\\Program Files\\Microsoft VS Code\\unins000.msg"
Feb 11 11:04:34.698 INFO Collected all directories and file handles for removal
Feb 11 11:04:34.698 INFO All file handles marked for deletion
Feb 11 11:04:34.698 INFO All files deleted
Feb 11 11:04:34.698 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\bdd88df003" (attempt 1)
Feb 11 11:04:34.745 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\bdd88df003" (attempt 2)
Feb 11 11:04:34.948 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\bdd88df003" (attempt 3)
Feb 11 11:04:35.402 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\bdd88df003" (attempt 4)
Feb 11 11:04:36.205 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\bdd88df003" (attempt 5)
Feb 11 11:04:37.457 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\bdd88df003" (attempt 6)
Feb 11 11:04:39.261 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\bdd88df003" (attempt 7)
Feb 11 11:04:41.714 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\bdd88df003" (attempt 8)
Feb 11 11:04:44.917 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\bdd88df003" (attempt 9)
Feb 11 11:04:48.970 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\bdd88df003" (attempt 10)
Feb 11 11:04:53.973 INFO Delete directory recursively: "C:\\Program Files\\Microsoft VS Code\\bdd88df003" (attempt 11)

Here's what i have under C:\Program Files\Microsoft VS Code:

2026-02-11  13:04    <DIR>          .
2026-02-03  14:07    <DIR>          ..
2026-02-11  13:04    <DIR>          591199df40
2026-02-06  12:03    <DIR>          bdd88df003
2026-02-11  13:04    <DIR>          bin
2026-02-10  20:52       202 509 384 Code.exe
2026-02-10  20:49               367 Code.VisualElementsManifest.xml
2026-02-11  13:04        19 459 712 unins000.dat
2026-02-11  13:03         3 494 984 unins000.exe
2026-02-11  13:04            24 367 unins000.msg

obuolinis avatar Feb 12 '26 16:02 obuolinis

It happened again when updating 109.2-->109.3.

I tried manually removing folder C:\Program Files\Microsoft VS Code\591199df40 but got access denied on file C:\Program Files\Microsoft VS Code\591199df40\appx\code_explorer_command_x64.dll. I then looked this dll up via Process Explorer and found that dllhost.exe has it locked for some reason.

obuolinis avatar Feb 13 '26 08:02 obuolinis

I can confirm with @obuolinis, the dllhost.exe is locking the C:\Program Files\Microsoft VS Code\591199df40\appx\code_explorer_command_x64.dll file and preventing the VS Code update from completing as it cannot delete the directory. Error is Access is denied. I can confirm this has happened on two different machines and two different update versions, now.

Here's as much info as I could think to get at the time of this reply.

Issue:

dllhost.exe locking C:\Program Files\Microsoft VS Code\591199df40\appx\code_explorer_command_x64.dll

Error message:

There was an error while Deleting a directory: "C:\\Program Files\\Microsoft VS Code\\591199df40":
Access is denied. (os error 5)
Please verify there are no Visual Studio Code processes still executing.

Processes:

## process 1
Name                       : CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705
Id                         : 4508
PriorityClass              : Normal
FileVersion                : 1.109.3             
HandleCount                : 148
WorkingSet                 : 14041088
PagedMemorySize            : 7544832
PrivateMemorySize          : 7544832
VirtualMemorySize          : 82944000
TotalProcessorTime         : 00:00:00.1093750
SI                         : 2
Handles                    : 148
VM                         : 82944000
WS                         : 14041088
PM                         : 7544832
NPM                        : 11752
Path                       : C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.exe
CommandLine                : "C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.exe" /SPAWNWND=$121C22 /NOTIFYWND=$8F1D50 /verysilent /log /update="C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.flag" /sessionend="C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\session-ending.flag" /nocloseapplications /mergetasks=runcode,!desktopicon,!quicklaunchicon
Parent                     : System.Diagnostics.Process (CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp)
Company                    : Microsoft Corporation                                       
CPU                        : 0.109375
ProductVersion             : 1.109.3                                           
Description                : Visual Studio Code Setup                                    
Product                    : Visual Studio Code                                          
__NounName                 : Process
SafeHandle                 : Microsoft.Win32.SafeHandles.SafeProcessHandle
Handle                     : 4768
BasePriority               : 8
HasExited                  : False
StartTime                  : 2026-02-13 14:58:14
MachineName                : .
MaxWorkingSet              : 1413120
MinWorkingSet              : 204800
Modules                    : {System.Diagnostics.ProcessModule (CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.exe), System.Diagnostics.ProcessModule (ntdll.dll), System.Diagnostics.ProcessModule (KERNEL32.DLL), System.Diagnostics.ProcessModule (KERNELBASE.dll)…}
NonpagedSystemMemorySize64 : 11752
NonpagedSystemMemorySize   : 11752
PagedMemorySize64          : 7544832
PagedSystemMemorySize64    : 152856
PagedSystemMemorySize      : 152856
PeakPagedMemorySize64      : 13352960
PeakPagedMemorySize        : 13352960
PeakWorkingSet64           : 18989056
PeakWorkingSet             : 18989056
PeakVirtualMemorySize64    : 94105600
PeakVirtualMemorySize      : 94105600
PriorityBoostEnabled       : True
PrivateMemorySize64        : 7544832
ProcessorAffinity          : 4194303
SessionId                  : 2
Threads                    : {36516}
VirtualMemorySize64        : 82944000
EnableRaisingEvents        : False
WorkingSet64               : 14041088
MainModule                 : System.Diagnostics.ProcessModule (CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.exe)
PrivilegedProcessorTime    : 00:00:00.0156250
UserProcessorTime          : 00:00:00.0937500
ProcessName                : CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705
MainWindowHandle           : 0
Responding                 : True

## process 2
Name                       : CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705
Id                         : 9780
PriorityClass              : Normal
FileVersion                : 1.109.3             
HandleCount                : 176
WorkingSet                 : 13463552
PagedMemorySize            : 7495680
PrivateMemorySize          : 7495680
VirtualMemorySize          : 82104320
TotalProcessorTime         : 00:00:00.2031250
SI                         : 2
Handles                    : 176
VM                         : 82104320
WS                         : 13463552
PM                         : 7495680
NPM                        : 11480
Path                       : C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.exe
CommandLine                : C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.exe /verysilent /log /update="C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.flag" /sessionend="C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\session-ending.flag" /nocloseapplications /mergetasks=runcode,!desktopicon,!quicklaunchicon
Company                    : Microsoft Corporation                                       
CPU                        : 0.203125
ProductVersion             : 1.109.3                                           
Description                : Visual Studio Code Setup                                    
Product                    : Visual Studio Code                                          
__NounName                 : Process
SafeHandle                 : Microsoft.Win32.SafeHandles.SafeProcessHandle
Handle                     : 5572
BasePriority               : 8
HasExited                  : False
StartTime                  : 2026-02-13 14:57:34
MachineName                : .
MaxWorkingSet              : 1413120
MinWorkingSet              : 204800
Modules                    : {System.Diagnostics.ProcessModule (CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.exe), System.Diagnostics.ProcessModule (ntdll.dll), System.Diagnostics.ProcessModule (KERNEL32.DLL), System.Diagnostics.ProcessModule (KERNELBASE.dll)…}
NonpagedSystemMemorySize64 : 11480
NonpagedSystemMemorySize   : 11480
PagedMemorySize64          : 7495680
PagedSystemMemorySize64    : 172528
PagedSystemMemorySize      : 172528
PeakPagedMemorySize64      : 13295616
PeakPagedMemorySize        : 13295616
PeakWorkingSet64           : 18210816
PeakWorkingSet             : 18210816
PeakVirtualMemorySize64    : 93020160
PeakVirtualMemorySize      : 93020160
PriorityBoostEnabled       : True
PrivateMemorySize64        : 7495680
ProcessorAffinity          : 4194303
SessionId                  : 2
Threads                    : {17996}
VirtualMemorySize64        : 82104320
EnableRaisingEvents        : False
WorkingSet64               : 13463552
MainModule                 : System.Diagnostics.ProcessModule (CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.exe)
PrivilegedProcessorTime    : 00:00:00.0312500
UserProcessorTime          : 00:00:00.1718750
ProcessName                : CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705
MainWindowHandle           : 0
Responding                 : True

## process 3
Name                       : CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp
Id                         : 15416
PriorityClass              : Normal
FileVersion                : 51.1052.0.0
HandleCount                : 401
WorkingSet                 : 51802112
PagedMemorySize            : 27922432
PrivateMemorySize          : 27922432
VirtualMemorySize          : 170901504
TotalProcessorTime         : 00:00:21.8593750
SI                         : 2
Handles                    : 401
VM                         : 170901504
WS                         : 51802112
PM                         : 27922432
NPM                        : 27376
Path                       : C:\Users\USERNA~1\AppData\Local\Temp\is-9A7NC.tmp\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp
CommandLine                : "C:\Users\USERNA~1\AppData\Local\Temp\is-9A7NC.tmp\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp" /SL5="$1C1BEE,124482580,841216,C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.exe" /SPAWNWND=$121C22 /NOTIFYWND=$8F1D50 /verysilent /log /update="C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.flag" /sessionend="C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\session-ending.flag" /nocloseapplications /mergetasks=runcode,!desktopicon,!quicklaunchicon
Parent                     : System.Diagnostics.Process (CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705)
Company                    : Microsoft Corporation                                       
CPU                        : 21.859375
ProductVersion             : 1.109.3                                           
Description                : Setup/Uninstall
Product                    : Visual Studio Code                                          
__NounName                 : Process
SafeHandle                 : Microsoft.Win32.SafeHandles.SafeProcessHandle
Handle                     : 5636
BasePriority               : 8
HasExited                  : False
StartTime                  : 2026-02-13 14:58:14
MachineName                : .
MaxWorkingSet              : 1413120
MinWorkingSet              : 204800
Modules                    : {System.Diagnostics.ProcessModule (CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp), System.Diagnostics.ProcessModule (ntdll.dll), System.Diagnostics.ProcessModule (KERNEL32.DLL), System.Diagnostics.ProcessModule (KERNELBASE.dll)…}
NonpagedSystemMemorySize64 : 27376
NonpagedSystemMemorySize   : 27376
PagedMemorySize64          : 27922432
PagedSystemMemorySize64    : 291400
PagedSystemMemorySize      : 291400
PeakPagedMemorySize64      : 28491776
PeakPagedMemorySize        : 28491776
PeakWorkingSet64           : 52039680
PeakWorkingSet             : 52039680
PeakVirtualMemorySize64    : 224620544
PeakVirtualMemorySize      : 224620544
PriorityBoostEnabled       : True
PrivateMemorySize64        : 27922432
ProcessorAffinity          : 4194303
SessionId                  : 2
Threads                    : {40052, 15776, 34460}
VirtualMemorySize64        : 170901504
EnableRaisingEvents        : False
WorkingSet64               : 51802112
MainModule                 : System.Diagnostics.ProcessModule (CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp)
PrivilegedProcessorTime    : 00:00:08.0625000
UserProcessorTime          : 00:00:13.7968750
ProcessName                : CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp
MainWindowHandle           : 0
Responding                 : True

## process 4
Name                       : CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp
Id                         : 41824
PriorityClass              : Normal
FileVersion                : 51.1052.0.0
HandleCount                : 335
WorkingSet                 : 25563136
PagedMemorySize            : 8011776
PrivateMemorySize          : 8011776
VirtualMemorySize          : 117800960
TotalProcessorTime         : 00:00:00.1718750
SI                         : 2
Handles                    : 335
VM                         : 117800960
WS                         : 25563136
PM                         : 8011776
NPM                        : 18944
Path                       : C:\Users\USERNAME\AppData\Local\Temp\is-P828L.tmp\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp
CommandLine                : "C:\Users\USERNAME\AppData\Local\Temp\is-P828L.tmp\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp" /SL5="$8F1D50,124482580,841216,C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.exe" /verysilent /log /update="C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.flag" /sessionend="C:\Users\USERNAME\AppData\Local\Temp\vscode-stable-system-x64\session-ending.flag" /nocloseapplications /mergetasks=runcode,!desktopicon,!quicklaunchicon
Parent                     : System.Diagnostics.Process (CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705)
Company                    : Microsoft Corporation                                       
CPU                        : 0.171875
ProductVersion             : 1.109.3                                           
Description                : Setup/Uninstall
Product                    : Visual Studio Code                                          
__NounName                 : Process
SafeHandle                 : Microsoft.Win32.SafeHandles.SafeProcessHandle
Handle                     : 3492
BasePriority               : 8
HasExited                  : False
StartTime                  : 2026-02-13 14:57:35
MachineName                : .
MaxWorkingSet              : 1413120
MinWorkingSet              : 204800
Modules                    : {System.Diagnostics.ProcessModule (CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp), System.Diagnostics.ProcessModule (ntdll.dll), System.Diagnostics.ProcessModule (KERNEL32.DLL), System.Diagnostics.ProcessModule (KERNELBASE.dll)…}
NonpagedSystemMemorySize64 : 18944
NonpagedSystemMemorySize   : 18944
PagedMemorySize64          : 8011776
PagedSystemMemorySize64    : 233600
PagedSystemMemorySize      : 233600
PeakPagedMemorySize64      : 9334784
PeakPagedMemorySize        : 9334784
PeakWorkingSet64           : 25661440
PeakWorkingSet             : 25661440
PeakVirtualMemorySize64    : 125665280
PeakVirtualMemorySize      : 125665280
PriorityBoostEnabled       : True
PrivateMemorySize64        : 8011776
ProcessorAffinity          : 4194303
SessionId                  : 2
Threads                    : {13836}
VirtualMemorySize64        : 117800960
EnableRaisingEvents        : False
WorkingSet64               : 25563136
MainModule                 : System.Diagnostics.ProcessModule (CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp)
PrivilegedProcessorTime    : 00:00:00.0781250
UserProcessorTime          : 00:00:00.0937500
ProcessName                : CodeSetup-stable-b6a47e94e326b5c209d118cf0f994d6065585705.tmp
MainWindowHandle           : 0
Responding                 : True

ITMighty avatar Feb 13 '26 21:02 ITMighty

A workaround for those affected:

  • Kill the dllhost.exe process locking it.
  • Use the Retry button on the error afterwards.

If there's anything else I can provide, please let me know!

ITMighty avatar Feb 13 '26 21:02 ITMighty

Seeing this as well. Maybe due to running the update from a non-admin account? I feel like that used to prompt for UAC and work as expected though.

dbaileyut avatar Feb 16 '26 23:02 dbaileyut

This starting happening to us as well in our environment around version 1.109.2 (I believe) as well as the latest version that we tried to upgrade to (1.109.4). When I ended the dllhost.exe process the installation did complete successfully.

We run the updater as System as our users do not have the ability to install or update programs.

As of 3/5/2026, this happened again with version 1.110.0 and when I ended the process 'COM Surrogate (32-bit)' associated with process name 'dllhost.exe', the installer was finally able to complete.

AZphanus avatar Feb 18 '26 13:02 AZphanus

Seeing this as well. Maybe due to running the update from a non-admin account? I feel like that used to prompt for UAC and work as expected though.

I thought something similar. On one computer that updated, VS Code is ran as admin on execution using a shortcut with the compatibility checked to always open as such. The error was not seen on that machine. On my work computer, though, I do not run VS Code as an admin. When I trigger an update, it makes me provide credentials for the administrator. I do that and after the normal progress bars, etc., it fails.

I wonder if it has something to do with how VS Code is installed and how we're updating it. The admin shortcut computer had VS Code installed via a downloaded executable. My non-privileged account install was done through CCM using the PatchMyPC (PMPC) application package. Both were updated through VS Code.

ITMighty avatar Feb 18 '26 15:02 ITMighty

I am seeing the same issue on multiple systems where the application is installed for all users and the logged in user is not running as admin, but enters the administrative credentials when prompted. It has occurred through several updates on systems that are regularly kept up-to-date with each new release.

I see the Visual Studio Code error popup:

There was an error while Deleting a directory: "C:\Program Files\Microsoft VS Code\[looks like a random id]": Access is denied. (os error 5) Please verify there are no Visual Studio Code processes still executing.

Manually trying to delete the files in this folder leads to the error:

This action can't be completed because the file is open in COM Surrogate Close the file and try again. code_explorer_command_x64.dll

Digging into the running processes I find a dllhost.exe that is locking the dll. I can note the PID, open an admin PowerShell window and run a Stop-Process [PID] -Force then retry on the error window and the install will complete.

JeramyK avatar Feb 20 '26 17:02 JeramyK

Experiencing the same behaviour on the last two consecutive updates on Windows 11.

Symptoms:

  • VS Code triggers update on restart, installer window appears
  • Installation process hangs indefinitely — no progress, no error, no completion
  • Killing the installer process (and any orphaned PowerShell/Setup subprocesses) and restarting VS Code reveals the update was actually applied successfully
  • Reproducible across both recent updates — not a one-off

Environment:

  • OS: Windows 11 Pro (Build 26200)
  • VS Code: Stable channel (user setup)
  • No third-party antivirus (Windows Defender only)

The installer appears to complete the file operations but the cleanup/finalisation step stalls. The fact that killing the process leaves a fully working updated installation suggests the hang is in post-install teardown rather than the actual update payload.

RajeevRKC avatar Mar 07 '26 22:03 RajeevRKC

I use the following Powershell line as a workaround to make sure my silent installation works:

powershell.exe $m=[regex]::Escape('/Processid:{1C6DF0C0-192A-4451-BE36-6A59A86A692E}'); foreach ( $p in (gcim Win32_Process -Filter 'Name=''dllhost.exe''') ) { if ($p.CommandLine -and $p.CommandLine -match $m) {spps -Id $p.ProcessId -Force -ea Stop; Write-Output $p} }

This makes sure the dllhost that holds the handle to the dll is closed before running the setup.

bitpride avatar Mar 26 '26 12:03 bitpride

Managed to collect some more info about the dllhost.exe that has our code_explorer_command_x64.dll locked.

I found a reference to its launch at Microsoft-Windows-AppModel-Runtime/Admin event log, and it happened minutes after pc restart:

  • Event id 210: Created Desktop AppX container {7C03F04F-29CE-11F1-917D-2C7BA0386417} for package Microsoft.VisualStudioCode_1.0.112.0_neutral__8wekyb3d8bbwe.
  • Event id 211: Added process 25832 to Desktop AppX container {7C03F04F-29CE-11F1-917D-2C7BA0386417} for package Microsoft.VisualStudioCode_1.0.112.0_neutral__8wekyb3d8bbwe.

The process with id 25832 is the one that was launched with a command line "C:\WINDOWS\SysWOW64\DllHost.exe" /Processid:{1C6DF0C0-192A-4451-BE36-6A59A86A692E}. What's odd is that this particular dllhost.exe is the only dllhost instance running from C:\WINDOWS\SysWOW64, meaning it's a 32-bit process (Vs Code is 64-bit).

That event log contains a series of 210+211 events at the same (and at a later) time referencing other apps like Microsoft.OneDriveSync, Microsoft.CompanyPortal or Microsoft.MicrosoftOfficeHub, so I assume that's some kind of regular Windows activity with appx packages.

Regarding the guid {1C6DF0C0-192A-4451-BE36-6A59A86A692E} that was used to launch the dllhost.exe, it seems to be the internal id of an app (or a class) under which Vscode appx package is registered. It can be found in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PackagedCom\ClassIndex, and it has several subkeys under it referencing different versions of Vs Code appx packages. For example: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PackagedCom\ClassIndex\{1C6DF0C0-192A-4451-BE36-6A59A86A692E}\Microsoft.VisualStudioCode_1.0.112.0_neutral__8wekyb3d8bbwe.

If we navigate to the HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PackagedCom\Package registry key we can find subkeys of those appx packages, and under Microsoft.VisualStudioCode subkeys we can see references to code_explorer_command_x64.dll. So this basically explains why this specific dll gets locked by dllhost.exe.

However, here's another odd thing - today I've rebooted two different computers with VsCode v112 installed, and only one of them had events with ids 210+211 mentioning Microsoft.VisualStudioCode appx package. Other appx were processed but not VsCode. There was just a single event in the AppModel-Runtime log mentioning VsCode - id 42 "Successfully updated AppContainer Microsoft.VisualStudioCode_8wekyb3d8bbwe", logged at the time v113 was installed, and that's it.

Looking into yesterday's events in the AppModel-Runtime log I can see such sequence:

  • Created Desktop AppX container {1E75B19A-28E6-11F1-9333-D0577E0BE351} for package Microsoft.VisualStudioCode_1.0.112.0_neutral__8wekyb3d8bbwe.
  • Added process 13604 to Desktop AppX container 1e75b19a-28e6-11f1-9333-d0577e0be351 for package Microsoft.VisualStudioCode_1.0.112.0_neutral__8wekyb3d8bbwe.
  • (7s later) Destroyed Desktop AppX container {1E75B19A-28E6-11F1-9333-D0577E0BE351} for package Microsoft.VisualStudioCode_1.0.112.0_neutral__8wekyb3d8bbwe.

So that's how it's supposed to work probably? And the problem starts when appx container doesn't get destroyed for some reason?

Edit: I've just rebooted my affected computer and guess what - i see that Microsoft.VisualStudioCode appx was added to a container which wasn't destroyed (events 210+211), and i see a running C:\WINDOWS\SysWOW64\dllhost.exe process that of course has code_explorer_command_x64.dll loaded...

obuolinis avatar Mar 27 '26 17:03 obuolinis

I am facing the same problem. For a simple task, it takes forever to finish. I noticed that this happens when I select "Auto" for the agent model. Once, I select "Claude Sonnet 4.5", it finishes the task within seconds.

Elashi avatar Mar 31 '26 14:03 Elashi

This is getting extremely frustrating considering how often VSCode updates itself. Especially when the updates mainly consist of AI related changes which I don't use. It interrupts the workflow to have to constantly workaround this. Considering the frequency at which VSCode updates itself, I would have figured this would be of higher priority.

thegitworker avatar Apr 02 '26 10:04 thegitworker

Hm, maybe I'm onto something.

Apparently every right-click on a file or folder that results in a menu option "Open with Code" being displayed triggers the command line "C:\WINDOWS\SysWOW64\DllHost.exe" /Processid:{1C6DF0C0-192A-4451-BE36-6A59A86A692E}. Then, when you either pick (any) one menu option or just dismiss it, the 32-bit dllhost destroys itself. That's what's supposed to happen and what happens on my main machine, regardless of which right-click menu (old-style or new-style) you call.

If you use native File Explorer, you have no problems. However, on my lab pc I'm calling the right-click menu from an app Free Commander XE 32-bit, and it's an old-style menu. From this app I can reliably reproduce the behavior where the 32-bit dllhost doesn't destroy itself and stays running.

So it looks very likely that the bug is related to what app you trigger the right-click menu from and/or the app architecture. Perhaps everyone affected could comment what file manager they use to work with files?

obuolinis avatar Apr 30 '26 18:04 obuolinis

If you use native File Explorer, you have no problems.

I'm using the native Windows 11 File Explorer and I see the issue every update for the last few months.

dbaileyut avatar Apr 30 '26 18:04 dbaileyut

I also have this happen on a fairly stock up-to-date Windows 11 setup.

xStrom avatar May 01 '26 08:05 xStrom

For repro, right-click a file to open context menu in Free Commander so that the context menu sticks as does not go away when you click out - then you get a situation where the dllhost locks the file:

Image

dmitrivMS avatar May 01 '26 23:05 dmitrivMS

Using standard windows 11 file manager with dumb'd down right click on that machine. Running an install at the system level from task scheduler; it leaves VSCode mostly uninstalled. (deleted main.js)

If I kill explorer and leave it dead the update will complete. If I rename the file and schedule a delete at reboot that's fine too.

WTAF! I'm getting alternate right clicks in dumb and full mode. It is not related to the file I click on. Just right Click-ESC it toggles between the two menus. Is it supposed to do that? I usually run without the dumb one. This certainly looks like a symptom.

Okay, reinstalling without "addcontextmenufiles" seems to have fixed it. I'll just use NP++.

rdebath avatar May 03 '26 09:05 rdebath