diff --git a/DeploymentFiles/UpdateIW4MAdmin.ps1 b/DeploymentFiles/UpdateIW4MAdmin.ps1 index b871f255..f211e968 100644 --- a/DeploymentFiles/UpdateIW4MAdmin.ps1 +++ b/DeploymentFiles/UpdateIW4MAdmin.ps1 @@ -61,8 +61,6 @@ if ($fileDownload.StatusDescription -ne "OK") throw "Could not update IW4MAdmin. ($fileDownload.StatusDescription)" } -$remoteHash = $fileDownload.Headers['Content-MD5'] -$decodedHash = [System.BitConverter]::ToString([System.Convert]::FromBase64String($remoteHash)).replace('-', '') $directoryPath = Get-Location $fullPath = "$directoryPath\$filename" $outputFile = [System.IO.File]::Open($fullPath, 2) @@ -88,13 +86,6 @@ finally $outputFile.Dispose() } -$localHash = (Get-FileHash -Path $fullPath -Algorithm MD5).Hash - -if ($localHash -ne $decodedHash) -{ - throw "Failed to update. File hashes don't match!" -} - Write-Output "Extracting $filename to $outputDir" Expand-Archive -Path $fullPath -DestinationPath $outputDir -Force