From a0070c87d9f7325631ddbbe5322bbcc125674738 Mon Sep 17 00:00:00 2001 From: Steven Pickles Date: Tue, 10 Mar 2020 11:43:42 -0400 Subject: [PATCH] Use Install-ChocolateyPackage instead of Install-ChocolateyInstallPackage Since Install-ChocolateyInstallPackage is noted to be used with the $file parameter and not the $url parameter, the Chocolatey documentation says to use Install-ChocolateyPackage. I made this mistake in a previous commit. --- tools/chocolateyinstall.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/chocolateyinstall.ps1 b/tools/chocolateyinstall.ps1 index 4e44f34..d47ccae 100644 --- a/tools/chocolateyinstall.ps1 +++ b/tools/chocolateyinstall.ps1 @@ -56,11 +56,11 @@ $packageArgs = @{ validExitCodes= @(0) #please insert other valid exit codes here } -#Install-ChocolateyPackage @packageArgs # https://chocolatey.org/docs/helpers-install-chocolatey-package +Install-ChocolateyPackage @packageArgs # https://chocolatey.org/docs/helpers-install-chocolatey-package #Install-ChocolateyZipPackage @packageArgs # https://chocolatey.org/docs/helpers-install-chocolatey-zip-package ## If you are making your own internal packages (organizations), you can embed the installer or ## put on internal file share and use the following instead (you'll need to add $file to the above) -Install-ChocolateyInstallPackage @packageArgs # https://chocolatey.org/docs/helpers-install-chocolatey-install-package +#Install-ChocolateyInstallPackage @packageArgs # https://chocolatey.org/docs/helpers-install-chocolatey-install-package ## Main helper functions - these have error handling tucked into them already ## see https://chocolatey.org/docs/helpers-reference @@ -69,7 +69,7 @@ Install-ChocolateyInstallPackage @packageArgs # https://chocolatey.org/docs/help ## - https://chocolatey.org/docs/helpers-install-chocolatey-package ## - https://chocolatey.org/docs/helpers-install-chocolatey-install-package ## add additional optional arguments as necessary -##Install-ChocolateyPackage $packageName $fileType $silentArgs $url [$url64 -validExitCodes $validExitCodes -checksum $checksum -checksumType $checksumType -checksum64 $checksum64 -checksumType64 $checksumType64] +#Install-ChocolateyPackage $packageName $fileType $silentArgs $url [$url64 -validExitCodes $validExitCodes -checksum $checksum -checksumType $checksumType -checksum64 $checksum64 -checksumType64 $checksumType64] ## Download and unpack a zip file - https://chocolatey.org/docs/helpers-install-chocolatey-zip-package ##Install-ChocolateyZipPackage $packageName $url $toolsDir [$url64 -checksum $checksum -checksumType $checksumType -checksum64 $checksum64 -checksumType64 $checksumType64]