You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/en-us/create/functions/index.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,8 @@ Chocolatey makes a number of environment variables available (You can access any
117
117
* ChocolateyPackageName - The name of the package, equivalent to the `<id />` field in the nuspec
118
118
* ChocolateyPackageTitle - The title of the package, equivalent to the `<title />` field in the nuspec
119
119
* ChocolateyPackageVersion - The version of the package, equivalent to the `<version />` field in the nuspec
120
+
* ChocolateyPreviousPackageVersion - The previous version of an already installed package, when performing an upgrade
121
+
* This environment variable is _only_ available in the `chocolateyInstall.ps1` file, and also the `pre`/`post``install` hook scripts, when doing an upgrade operation
0 commit comments