diff --git a/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 b/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 index 217d19a0c2..ad83d67d51 100644 --- a/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 @@ -85,9 +85,10 @@ param( # only set if urls are different if ($url32bit -ne $url64bit) { $checksum = $checksum64 + if ($checkSumType64 -ne '') { + $checksumType = $checksumType64 + } } - - $checksumType = $checksumType64 } try { diff --git a/src/chocolatey.resources/helpers/functions/Install-ChocolateyZipPackage.ps1 b/src/chocolatey.resources/helpers/functions/Install-ChocolateyZipPackage.ps1 index 0d9cea1315..63223ba8be 100644 --- a/src/chocolatey.resources/helpers/functions/Install-ChocolateyZipPackage.ps1 +++ b/src/chocolatey.resources/helpers/functions/Install-ChocolateyZipPackage.ps1 @@ -63,7 +63,7 @@ param( [string] $packageName, [string] $url, [string] $unzipLocation, - [string] $url64bit = $url, + [string] $url64bit = '', [string] $specificFolder ="", [string] $checksum = '', [string] $checksumType = '',