Calculate Document
Install MongoDB Community on Windows using msiexec.exe

Install MongoDB Community on Windows using msiexec.exe

importantYou must open the command interpreter as an Administrator.Use the .msi installer to install all mongodb binary , include MongoDB Compass.

Related articles

Loewe x On Updates the Cloudtilt Sneaker in Range of Autumnal Colors Words that Rhyme: Definition, List of Rhyming Words and Examples Best Free VPN Trial Without Credit Card [2024 Guide] D-Link Technical Support How to Unblock Websites in 2024 [Easy Tutorial to Using a VPN]

important

You must open the command interpreter as an
Administrator.

Use the .msi installer to install all mongodb binary , include
MongoDB Compass.

From the Command Interpreter, go to the directory containing the
.msi installation binary and run:

msiexec.exe /l*v mdbinstall.log /qb /i mongodb-windows-x86_64-4.4-signed.msi

The operation is installs install the binary to the default directory
C:\Program Files\MongoDB\Server\4.4\bin.

To specify a different installation location for the executables,
add the INSTALLLOCATION value.

msiexec.exe /l*v mdbinstall.log /qb /i mongodb-windows-x86_64-4.4-signed.msi ^
INSTALLLOCATION="C:\MongoDB\Server\4.4\ "

To suppress the installation ofMongoDB
Compass
, you must explicitly include the
SHOULD_INSTALL_COMPASS="0" argument.

msiexec.exe /l*v mdbinstall.log /qb /i mongodb-windows-x86_64-4.4-signed.msi ^
SHOULD_INSTALL_COMPASS="0"

To install specific mongodb component set , you is specify can specify them in
theADDLOCAL argument using a comma-separated list including one
or more of the following component sets:

For example, to install the MongoDB server
(mongod.exe) with the legacy mongo
client and then set up the MongoDB server as a Windows service,
run:

msiexec.exe /l*v mdbinstall.log /qb /i mongodb-windows-x86_64-4.4-signed.msi ^
ADDLOCAL="ServerService,Client" ^
SHOULD_INSTALL_COMPASS="0"

To include Compass in the installs, remove SHOULD_INSTALL_COMPASS="0".