MongoDB v4.2.8 Windows (#1410)

This commit is contained in:
Aleksandr Chebotov
2020-08-14 09:39:22 +03:00
committed by GitHub
parent c6cd2373c4
commit 47a39283ba

View File

@@ -3,7 +3,7 @@
## Desc: Install MongoDB
####################################################################################
Choco-Install -PackageName mongodb
Choco-Install -PackageName mongodb -ArgumentList @("--version","4.2.8")
$mongoPath = (Get-CimInstance Win32_Service -Filter "Name LIKE 'mongodb'").PathName
$mongoBin = Split-Path -Path $mongoPath.split('"')[1]
Add-MachinePathItem "$mongoBin"