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

How to Change TikTok Location: 4 different methods Setting up Payroll Processing with SAP SuccessFact… Sizzle and Salt Best VPN for Venezuela in 2024 Angus Cloud’s biography: Age, acting career, life before Euphoria, death

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