Install
Install copied to clipboard
Check $env:PATH before installation
Description
Some users are unable to realize that they are running a broken OS.
Check $env:PATH, if not as expected: aborts the installation and show related information.
-
%SystemRoot%\system32forcmd.exe,msiexec.exe,robocopy.exe, etc.
Related issues:
https://github.com/ScoopInstaller/Scoop/issues/3238 https://github.com/ScoopInstaller/Scoop/discussions/5364 https://github.com/ScoopInstaller/Scoop/discussions/5518 https://github.com/ScoopInstaller/Scoop/discussions/5429 https://github.com/ScoopInstaller/Scoop/issues/4876 https://github.com/ScoopInstaller/Scoop/issues/4875 https://github.com/ScoopInstaller/Scoop/issues/376
It works for me : win11_23h2, Run this in admin mode in powershell:
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Windows\System32", [EnvironmentVariableTarget]::Machine)