Skip to content

DOCS-4099 - unattended windows installation instructions #2129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions source/includes/fact-windows-unattended.rst
Original file line number Diff line number Diff line change
@@ -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-<version>-signed.msi INSTALLLOCATION="<installation directory>"

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 ``<installation directory>``. To install
specific subsets of the binaries, you may specify an ``ADDLOCAL``
argument:

.. code-block:: powershell

msiexec.exe /q /i mongodb-<version>-signed.msi INSTALLLOCATION="<installation directory>" ADDLOCAL=<binary set(s)>

where ``<binary set(s)>`` is a comma-separated list of one or more of:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be a sentence

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disagree.


- ``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-<version>-signed.msi INSTALLLOCATION="C:\mongodb" ADDLOCAL=MonitoringTools,ImportExportTools,MiscellaneousTools

You may also specify ``ADDLOCAL=ALL`` to install the complete set of binaries.
2 changes: 2 additions & 0 deletions source/tutorial/install-mongodb-enterprise-on-windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions source/tutorial/install-mongodb-on-windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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