-
I am trying to install chocolatey whitout 7-zip. Using $env:chocolateyUseWindowsCompression = 'true' prior running .\install.ps1 -UseNativeUnzip |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Can you confirm what Operating System you are installing onto, and what version of PowerShell you are using? The reason that I ask is that 7zip is only attempted to be used when the version of PowerShell that is in play is less then PowerShell 5. Also, what are you seeing that makes you think that 7zip is being used? Can you share the output that you are seeing from the attempt to install Chocolatey? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Yes, the
$env: chocolateyUseWindowsCompression
environment variable only applies during the installation of the Chocolatey package. The way that Chocolatey is deployed is that the *.nupkg file (which is essentially a zip file) is downloaded, and then extracted to the required location. This extraction is done either using native compression tools, or by downloading 7zip.However, as part of the Chocolatey package, we also ship 7zip, as it is a requirement for some of the built-in compression cmdlets that Chocolatey provides, for example Get-ChocolateyUnZip. Without …