Install icon indicating copy to clipboard operation
Install copied to clipboard

Check $env:PATH before installation

Open HUMORCE opened this issue 2 years ago • 1 comments

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%\system32 for cmd.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

HUMORCE avatar Aug 11 '23 09:08 HUMORCE

It works for me : win11_23h2, Run this in admin mode in powershell:

[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Windows\System32", [EnvironmentVariableTarget]::Machine)

q2333gh avatar Aug 30 '24 05:08 q2333gh