chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.04k stars 890 forks source link

Install-ChocolateyPath: should -Scope default to 'Machine' #3448

Open vexx32 opened 1 month ago

vexx32 commented 1 month ago

Checklist

Is Your Feature Request Related To A Problem? Please describe.

Packages that don't specify a -Scope for Install-ChocolateyPath will default to User scope, even if choco is running as admin (which is our primary supported use case).

Describe The Solution. Why is it needed?

Packages installing software system-wide (as is our often expected use case) may wind up putting values in the user PATH instead if the package maintainers aren't sufficiently aware / heeding documentation on what the defaults are. This could potentially result in packages not working as expected in a multi-user system, and is reasonably non-trivial to see where the fault might lie.

Some options:

Additional Context

No response

Related Issues

No response