NOTE: All of the following variables need to be prefixed with $env:
CHOCOLATEY_VERSION:0.10.3.0CHOCOLATEY_VERSION_PRODUCT:0.10.3(EXPERIMENTAL)ChocolateyForce-$trueif the user passed--forcewhen installing, otherwise not setChocolateyInstall- Set to the path where choco is installed.chocolateyInstallArguments- The extra arguments the user have passed to the installer (EXPERIMENTAL)chocolateyInstallOverride-$trueif the user passed--notsilent(EXPERIMENTAL)ChocolateyPackageFolder- The path to where the package content is cachedchocolateyPackageParameters- All parameters the user passed using the--paramsargumentChocoPackageName- The ID of the installing packageChocoPackageTitle- The Title of the installing packageChocoPackageVersion- The Version of the installing packagechocolateyForceX86-$trueif the user passed--x86when installing, otherwise not setpackageFolder- The path to where the package content is cachedpackageName- The ID of the installing packagepackageTitle- The Title of the installing packagepackageVersion- The Version of the installing packageTEMP- The path to chocolateys temporary cache directoryTMP- The path to chocolateys temporary cache directoryOS_PLATFORM- The current platform the user is running (i.e. Windows, OSX, Linux)OS_VERSION- The current version of the platform the user is runningOS_NAME- The reported name of the Operating System.IS_PRCESSELEVATED- Are we currently running with elevated privilegesOS_IS64BIT- Are we running on a 64 bit operating system (EXPERIMENTAL)IS_ADMIN- Is the current user an administrator (EXPERIMENTAL)
DISCLAIMER: This gist is just meant to show what variables is available in choco v 0.10.3, it's YOUR responsibility to make sure they are available in earlier versions and that they are allowed to use on chocolatey.org (if the package will be submitted there).
See https://chocolatey.org/docs/helpers-reference#variables for an more up-to-date list