Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set Chocolatey to install applications onto another drive?

I've installed Chocolatey, but I would like it to install programs to another drive instead of C. C is only a small SSD, but I have other drives where I usually install programs to.

Any ideas?

like image 790
Hazz22 Avatar asked Nov 03 '13 11:11

Hazz22


People also ask

How do I change Chocolatey install location?

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.

Where does Chocolatey install applications?

Where does Chocolatey install by default? As of version 0.9. 8.24, binaries, libraries and Chocolatey components install in C:\ProgramData\chocolatey (environment variable %ProgramData%) by default. This reduces the attack surface on a local installation of Chocolatey and limits who can make changes to the directory.

How do I run programs installed by Chocolatey?

If console2 puts itself on the path, you can just call console2 (or whatever the program name is). Otherwise you can use a launcher to open it or hit Windows key and start typing the name of the program.

What is Chocolatey last path update?

There is an environment variable set on installation, ChocolateyInstall , which is set to C:\Chocolatey by default in versions of Chocolatey less than 0.9. 8.27. After that, this defaults to C:\ProgramData\Chocolatey . NOTE: By default, the C:\ProgramData folder on Windows is hidden.


1 Answers

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.

Another way to ensure a different drive is to relocate your Program Files to a different drive. You may want to look that up; it is possible to do.

Chocolatey Licensed Versions

We've added the ubiquitous install switch! If you need to override the install directory and you don't want to do all of the work to determine what that switch is, you have the option to use one switch with Chocolatey - Ubiquitous Install Directory Option (Licensed Editions Only).

NOTE: We need to ensure the longevity of the Chocolatey community somehow, and that is to have a FOSSium (freemium) model. The Pro version is $8/month (annually $96), costs you less than eating out once a month, gets you some awesome features, and ensures that the community infrastructure continues to provide a great service and improve. While you are using a free service (the community repository, aka https://chocolatey.org/packages), it is not free to provide that service. So we select certain premium features to go into those versions to provide enough value to be worth the price.

like image 51
ferventcoder Avatar answered Oct 07 '22 13:10

ferventcoder