I've been installing programs with chocolatey, but it's not adding them to my path automatically. Does anyone know a solution? I just followed the install instruction on Chocolatey's front page, and everything works well. The programs just aren't being added to the path.
Most package contents will be installed to the chocolatey directory, which you can find at C:\ProgramData\chocolatey\lib .
Chocolatey uses shimming to add executables from packages into the PATH by adding them to the default directory of C:\ProgramData\chocolatey\bin.
NOTICE: As of 0.9. 8.24, Chocolatey's default install location is C:\ProgramData\Chocolatey.
Chocolatey FOSS For each application, you would need to know its command line switch used during installation to change its installation directory and pass it using --installArgs . See Install Command (choco install) and Overriding default install directory or other advanced install concepts.
It depends on what you install, and whether those native installers add themselves to the path in some cases.
If the package maintainer doesn't take the extra step in the cases where the installer doesn't add a program folder to the PATH, then those items may not be available on the command line.
The other side of this is that those items may be in PATH, but not to your current shell (cmd/powershell/whatever). This is due to how Windows works versus terminal in *nix. We've made some improvements there but it's not perfect. Expect things to get better over time in that aspect.
We have one issue out for ensuring that we create the User PATH correctly in the registry. This might be what is causing the issue for any items that may be adding themselves to this PATH instead of the system PATH.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With