[Windows] Add signature validator for MongoDB (#8304)

This commit is contained in:
sergei-pyshnoi
2023-09-22 10:52:16 +02:00
committed by GitHub
parent c0a84fc9dd
commit 55ce401f7f
4 changed files with 41 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ $installDir = "c:\PROGRA~1\MongoDB"
$binaryName = "mongodb-windows-x86_64-$LatestVersion-signed.msi"
$downloadURL = "https://fastdl.mongodb.org/windows/$BinaryName"
$installArg = "INSTALLLOCATION=$installDir ADDLOCAL=all"
Install-Binary -Url $downloadURL -Name $binaryName -ArgumentList ("/q","/i","${env:Temp}\$binaryName", $installArg)
Install-Binary -Url $downloadURL -Name $binaryName -ArgumentList ("/q","/i","${env:Temp}\$binaryName", $installArg) -ExpectedSignature (Get-ToolsetContent).mongodb.signature
# Add mongodb to the PATH