Not sure where to post this question, if this is not the right place - please tell me where I can send this. I have been trying to install MongoDB via the command prompt using PowerShell and I have had a not so pleasant experience. It installs however its different from a GUI installation, it also does not show up in add/remove programs when installing from the command prompt. This is my initial script which is in PowerShell. I had to created the directories if not it bombed out. Ideally I need to get to a point where the command line install is exactly the same as the GUI install. This is for quick scripted deployments.
pushd $PSScriptRoot
$FolderLocation = “C:\Program Files\MongoDB\Server\4.0”
New-Item -Path $FolderLocation -Name data -ItemType “directory” -Force
New-Item -Path $FolderLocation -Name logs -ItemType “directory” -Force
New-Item -Path $FolderLocation -Name bin -ItemType “directory” -Force
$MSI = “mongodb-win32-x86_64-2008plus-ssl-4.0.8-signed.msi”
msiexec /i “$MSI” /qn