0

I'm trying to install a Chocolatey package which is essentially a zip archive from Github repository releases. Is it possible to set a custom unzip path in a manner similar to choco install zippedpackage --ia "unzippath=D:\path\"?

For example, I've managed to set a custom install location for MSI (WiX, INSTALL_ROOT), Inno Setup (/DIR) and NSIS (/D) installers. But how to do it for zip?

There is an article on Install-ChocolateyZipPackage describing an -UnzipLocation <String> option, but I don't know if it is possible to set it from choco install command.

2
  • Are you facing any limitations when using the Powershell cmdlet?
    – doenoe
    Commented Feb 10, 2020 at 10:06
  • @Smeerpijp no, I'm doing it on my own machine.
    – tsilvs
    Commented Feb 10, 2020 at 18:01

1 Answer 1

1

Install-ChocolateyZipPackage accepts an optional -UnzipLocation parameter.

$unzipLocation = '{0}\Some\Path' -f $Env:SystemDrive

$packageArgs = @{
  ...
  unzipLocation = $unzipLocation
}

Install-ChocolateyZipPackage @packageArgs

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .