MongoDB silent installation

Hey Team, I am interested to install MongoDB silently using msiexec.exe

Let’s consider a scenario
I am installing MongoDB from GUI and I unselect Mongo as service. Then proceed with the installation.

I want to achieve the above scenario through msiexec.exe command then what all value should have opted. Can you help me understand the same.

msiexec.exe /l*v mdbinstall.log /qb /i mongodb-win32-x86_64-2012plus-4.2.5-signed.msi ADDLOCAL=“ServerService,Client” SHOULD_INSTALL_COMPASS=“0”

As a default offering; are these two the only component which needs to be added to ADDLOCAL
or we need to as some other values need to be added.

1 Like

It dependes on what other components you need
As per mongo doc those are the two components given

Please go thru Jira tickets.There are some associated bugs like installation fails when you use more components separated by comma
One suggestion was to use addlocal=ALL and then uninstall unneeded components from programs

Also in your scenario if you unchecked Mongo as service i think you need to use ServernoService
May be others who did this type of silent installtion can help you more on this