TR049
Posts: 1
Joined: Tue May 22, 2018 1:37 pm

MongoDB as a prerequisite with command line arguments

Hello everyone,
I want to silently install MongoDB as a prerequisite. The problem is to pass the command line arguments.
The usual command( without AI ) is:

msiexec.exe /q /i mongodb-win32-x86_64-2008plus-ssl-3.6.4-signed.msi ^
INSTALLLOCATION="C:\Program Files\MongoDB\Server\3.6.4\" ^
ADDLOCAL="all" ^
SHOULD_INSTALL_COMPASS="0"

My question is how and where to pass these arguments "INSTALLLOCATION, ADDLOCAL, SHOULD_INSTALL_COMPASS"
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: MongoDB as a prerequisite with command line arguments

Hi and welcome to our forums.

In order to add a custom prerequisite in your package, you can follow the steps described in the "Add Prerequisites" tutorial.

The command line should be written in the appropriate "Install Command Lines" fields. For example:
  • Full UI: this command line will be used for the prerequisite when the main package is installed with Full UI
    Basic UI: this command line will be used for the prerequisite when the main package is installed with Basic UI
    Silent (no UI): this command line will be used for the prerequisite when the main package is installed silently
Let me know if you need more details.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”