Last week, I built a package for Dynamsoft Barcode Reader using Chocolatey. One thing disappointed me that I can’t specify the installation directory if I don’t have a licensed Chocolatey edition. It means all packages will be installed to C:\ProgramData\chocolatey\lib. I do worry about my C drive storage spaces. Therefore, I decided to use PowerShell script moving Chocolatey packages. Although I’ve been a Windows user for many years, I never touched PowerShell before. What I’m going to do is to use PowerShell to move the package to a new location, remove the old package and register the destination directory to the environment path.
Most windows users like to download an installer to install software. However, for developers, probably they would rather like to use a command line tool (APT, Homebrew, etc.), like they get used on Linux and macOS, to install a program. Chocolatey is a command line package manager for Windows.