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

NordVPN Not Working in China: 7 Tested Solutions To Fix It Now 1962 Rolls-Royce Silver Cloud II Drophead Coupe by H.J. Mulliner for sale on BaT Auctions How to Use a VPN for Cheaper Flights in 2024 Draw a word cloud with a R Shiny app Cloud Retainer’s Damasked Device

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