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 program
The accepted answer hints at this option already, so I'm only posting for the sake of completeness:
While SSDs have gotten bigger and cheaper in recent years, there are still some niche use cases where you want to keep a Windows install on a separate, smaller partition and software on a different, bigger partition.
win + R
and type regedit
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
ProgramFilesDir
and ProgramFilesDir (x64)
from C:\ProgramFiles
to [your drive]:\Program Files
Citing my sources: this answer but longer.
Chocolatey will, in general, respect this — but there's a few caveats with that method that need to be mentioned:
ProgramFilesDir
registry keys. For example, Audacity still installed to C:
(despite — in my case, at least — ProgramFilesDir
is F:\Program Files
, but chocolatey made an assumption that it's installed to F:
when making the shortcuts and start menu entries).ProgramFilesDir
registry keys before installing anything with chocolatey, otherwise some scripts, packages, or programs might be broken (for example, I had to reinstall the chocolateygui
package)Side note: this answer operates under assumption that "how do I set chocolatey to install applications onto another drive" means "how do I set chocolatey to install application to the same drive where I've installed most of my other software."