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

前端 未结 8 980
半阙折子戏
半阙折子戏 2021-01-30 16:19

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

8条回答
  •  别跟我提以往
    2021-01-30 17:01

    For an MSI package (which is most often the case in Windows) use:

    choco install package-name  --% -ia INSTALLDIR="c:\intall\path"
    

    To see whether the package is an MSI one, on the Chocolatey package page, under Files, look for chocolateyInstall.ps1 and then look for:

    fileType = 'msi'
    

    It was tested with Strawberry Perl.

    Of course, you can always use the paid chocolate and benefit from the ubiquitous install switch.

提交回复
热议问题