diff --git a/images/win/scripts/Installers/Install-MongoDB.ps1 b/images/win/scripts/Installers/Install-MongoDB.ps1 index 8f4a9778..2265b40a 100644 --- a/images/win/scripts/Installers/Install-MongoDB.ps1 +++ b/images/win/scripts/Installers/Install-MongoDB.ps1 @@ -5,7 +5,7 @@ $toolsetVersion = (Get-ToolsetContent).mongodb.version $latestChocoPackage = Get-LatestChocoPackageVersion -TargetVersion $toolsetVersion -PackageName "mongodb" -Choco-Install -PackageName mongodb -ArgumentList "--version $latestChocoPackage" +Choco-Install -PackageName mongodb -ArgumentList "--version=$latestChocoPackage" $mongoPath = (Get-CimInstance Win32_Service -Filter "Name LIKE 'mongodb'").PathName $mongoBin = Split-Path -Path $mongoPath.split('"')[1] Add-MachinePathItem "$mongoBin" diff --git a/images/win/toolsets/toolset-2016.json b/images/win/toolsets/toolset-2016.json index 49141ca6..bf2c21ad 100644 --- a/images/win/toolsets/toolset-2016.json +++ b/images/win/toolsets/toolset-2016.json @@ -426,6 +426,6 @@ "version": "5.7" }, "mongodb": { - "version": "5" + "version": "5.0" } } diff --git a/images/win/toolsets/toolset-2019.json b/images/win/toolsets/toolset-2019.json index 2726268d..5cb45bbd 100644 --- a/images/win/toolsets/toolset-2019.json +++ b/images/win/toolsets/toolset-2019.json @@ -458,6 +458,6 @@ "version": "5.7" }, "mongodb": { - "version": "5" + "version": "5.0" } } diff --git a/images/win/toolsets/toolset-2022.json b/images/win/toolsets/toolset-2022.json index d7c19905..12ab1ba9 100644 --- a/images/win/toolsets/toolset-2022.json +++ b/images/win/toolsets/toolset-2022.json @@ -308,6 +308,6 @@ "version": "8.0" }, "mongodb": { - "version": "5" + "version": "5.0" } }