diff --git a/source/includes/fact-windows-unattended.rst b/source/includes/fact-windows-unattended.rst new file mode 100644 index 00000000000..06c3c301ef4 --- /dev/null +++ b/source/includes/fact-windows-unattended.rst @@ -0,0 +1,41 @@ + Unattended Installation of MongoDB for Windows +----------------------------------------------- + +You may install MongoDB unattended on Windows from the command line +using ``msiexec.exe``. Open a shell in the directory containing the +``.msi`` installation binary of your choice and invoke: + +.. code-block:: powershell + + msiexec.exe /q /i mongodb--signed.msi INSTALLLOCATION="" + +By default, this method installs all MongoDB binaries except the +router (``mongos.exe``) and miscellaneous tools (``bsondump.exe``, +``mongofiles.exe``, ``mongooplog.exe``, and ``mongoperf.exe``) to the +directory specified in ````. To install +specific subsets of the binaries, you may specify an ``ADDLOCAL`` +argument: + +.. code-block:: powershell + + msiexec.exe /q /i mongodb--signed.msi INSTALLLOCATION="" ADDLOCAL= + +where ```` is a comma-separated list of one or more of: + +- ``Server`` - includes ``mongod.exe`` +- ``Client`` - includes ``mongo.exe`` +- ``MonitoringTools`` - includes ``mongostat.exe`` and + ``mongotop.exe`` +- ``ImportExportTools`` - includes ``mongodump.exe``, + ``mongorestore.exe``, ``mongoexport.exe``, and ``mongoimport.exe``) +- ``MiscellaneousTools`` - includes ``bsondump.exe``, + ``mongofiles.exe``, ``mongooplog.exe``, and ``mongoperf.exe`` + +For instance, to install the entire set of tools only to +``C:\mongodb``, invoke: + +.. code-block:: powershell + + msiexec.exe /q /i mongodb--signed.msi INSTALLLOCATION="C:\mongodb" ADDLOCAL=MonitoringTools,ImportExportTools,MiscellaneousTools + +You may also specify ``ADDLOCAL=ALL`` to install the complete set of binaries. diff --git a/source/tutorial/install-mongodb-enterprise-on-windows.txt b/source/tutorial/install-mongodb-enterprise-on-windows.txt index 3fdeadf1a88..37369c3b58a 100644 --- a/source/tutorial/install-mongodb-enterprise-on-windows.txt +++ b/source/tutorial/install-mongodb-enterprise-on-windows.txt @@ -63,3 +63,5 @@ If you have installed in an alternative directory, you will need to adjust the paths as appropriate. .. include:: /includes/steps/create-manually-windows-service-for-mongodb-enterprise.rst + +.. include:: /includes/fact-windows-unattended.rst diff --git a/source/tutorial/install-mongodb-on-windows.txt b/source/tutorial/install-mongodb-on-windows.txt index 5f9c611de3c..b0cf5fcdaa2 100644 --- a/source/tutorial/install-mongodb-on-windows.txt +++ b/source/tutorial/install-mongodb-on-windows.txt @@ -63,3 +63,5 @@ If you have installed in an alternative directory, you will need to adjust the paths as appropriate. .. include:: /includes/steps/create-manually-windows-service-for-mongodb.rst + +.. include:: /includes/fact-windows-unattended.rst