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

Expand Your VMware Cloud Foundation Knowledge with a VCF Course 12 Best Pillows 2024, Tested for All Sleep Positions Always On VPN Trusted Network Detection Tor Browser Download Free 35 Best Free Movie Websites in 2024 [Newest Update]

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".