Chocolatey CLI (choco.exe) v1.2.0

  • 21 October 2022
  • 1 comment
  • 84 views

Userlevel 7
Badge +14

Chocolatey released the version 1.2.0 of the Chocolatey CLI, the tool that you use when using Chocolatey (choco.exe).

 

What is new?

New in this version is the possibility to have pre and post hooks for Chocolatey packages. This gives the (advanced) user the possibility to execute an additional powershell script before or after the three main Chocolatey scripts (install/beforeModify/upgrade). This can be on a package based or for all packages. See #1185

These can also be created using a newly introduced <packageName>.hook package type.

This feature could be really handy when it comes to automate stuff outside of a package. For example this could be used to verify if there is a Veeam backup job running before updating the VBR Server. More on this and how to do it in a feature blog post. I am going to play with this in a lab environment soon.

NOTE: Documentation is currently in a draft and not yet merged. I will keep an eye out for when it's finished and update the post and add a comment with a link. The draft can be found here: Docs PR #564

 

Another new feature is the possibility to dynamically load official signed extensions. See #2693

 

Bug fixes

  • Fix - Upgrade all reuses overridden package parameters when useRememberedArgumentsForUpgrades feature is turned on - see #1443
  • Fix - Wrong item set for overriding credentials when using remembered arguments during upgrade - see #2752
  • Fix - Python alternative source doesn't create arguments correctly due to spelling mistake - see #2777
  • Fix - Directory permissions not set when installed from PowerShell 7.2.5 - see #2789

Improvements

  • [Security] Unable to extract files from nupkg when different file name encoding is used - see #2816
  • Add cmdlet for acquiring paths set in environment variables that should not be used directly - see #2860
  • Add support for the --pin option on the install and upgrade commands - see #798
  • Packages.config should include all options (including ignorechecksums) - see #886
  • Add option to skip file logging for Zip file extraction in the Get-ChocolateyUnZip and Install-ChocolateyZipPackage cmdlets - see #1332
  • List parameters in templates - see #2500
  • ChocolateyTabExpansion.ps1 can cause slow auto-complete in PowerShell - see #2556
  • Deprecate side-by-side installs - see #2787
  • Change source type on source runners to be a generic string - see #2791
  • Remove trailing semicolon in templates and tests - see #2807

Documentation

  • Minor spelling errors in chocolatey/choco - see #2465
  • Update brand names - see #2747

 

The full release notes can be found here: https://docs.chocolatey.org/en-us/choco/release-notes#october-19-2022

 

 


1 comment

Userlevel 7
Badge +20

Very cool.  Time for an upgrade. 😎

Comment