Open bevanm8 opened 1 year ago
Good call on the ending the powershell task. That kicked my installer into gear, too. Thanks!
Ending the PowerShell task also worked for me.
This maybe caused by a powershell profile that maybe needs some user input, a solution could be for the installer to execute that powershell without loading profiles e.g. powershell -noprofile -command ...
You could temporarily execute the following in another powershell session until the installer has been fixed/updated:
do {
$installerPIDs=$(Get-WmiObject -Class Win32_Process |
Where-Object { $_.CommandLine -match ('vscode(user|machine|system|)(setup|install)') } |
Select-Object -ExpandProperty ProcessId)
if ($null -ne $installerPIDs) {
$filter = "name = 'Powershell.exe' AND (parentProcessId = $($installerPIDs -join ' OR parentProcessId = '))"
Get-WmiObject -Class Win32_Process -Filter $filter |
ForEach-Object { Stop-Process -Id $_.ProcessId -Force }
}
} while ( $null -ne $installerPIDs )
That script worked! I started the install, let it hang, then ran the script in PowerShell. The installation immediately proceeded.
Type: Bug
How to reproduce: Run the windows x64 installer Click through the standard pages Click install The installer then freezes.
I know it's frozen because I can't click anything, or drag it, I get the "Ding" noise as though there is something else open that I need to accept, but nothing is visible. This happens with the User and System builds, and I've tried the insiders build with the same result.
When I go to the task view option in Windows I see there are 2 items named Setup. When I look in Task Manager there are 3: "Console Window Host", Setup/Uninstall (32bit), Windows Powershell (32bit) - This is running the 64bit installer.
Interestingly if I kill just the "Windows Powershell" process the installer will continue on. Seems that there is an initial script that is getting stuck which is causing the installer to freeze.
I found an almost identical issue that was raised in 2018, which interestingly was listed as "Wont fix". Link Here: https://github.com/microsoft/vscode/issues/43949
Running Win 11 Pro
Let me know if I can provide any further information.
Screenshots:
VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:48:05.904Z) OS version: Windows_NT x64 10.0.22631 Modes:
Extensions (11)
Extension|Author (truncated)|Version ---|---|--- op-vscode|1Pa|1.0.4 prettier-vscode|esb|10.1.0 code-runner|for|0.12.1 homey-apps-extension|hom|0.10.0 vscode-docker|ms-|1.27.0 vscode-kubernetes-tools|ms-|1.3.15 isort|ms-|2023.10.1 python|ms-|2023.18.0 remote-wsl|ms-|0.81.8 powershell|ms-|2023.8.0 vscode-yaml|red|1.14.0