Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chocolatey installed package not on Path

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.

like image 630
Breedly Avatar asked Nov 20 '13 03:11

Breedly


People also ask

Where are the chocolatey packages installed?

Most package contents will be installed to the chocolatey directory, which you can find at C:\ProgramData\chocolatey\lib .

Does chocolatey Add to path?

Chocolatey uses shimming to add executables from packages into the PATH by adding them to the default directory of C:\ProgramData\chocolatey\bin.

Where is chocolatey installed Windows?

NOTICE: As of 0.9. 8.24, Chocolatey's default install location is C:\ProgramData\Chocolatey.

How do I change the install location in 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.


1 Answers

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.

like image 158
ferventcoder Avatar answered Sep 28 '22 09:09

ferventcoder