Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-33926

Unattended installation fails when deselecting Compass

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.3
    • Affects Version/s: 3.6.3
    • Component/s: Packaging
    • None
    • Environment:
      Microsoft Windows 10 Enterprise (64-bit)
    • Fully Compatible
    • ALL
    • Hide
      1. Download mongodb-win32-x86_64-2008plus-ssl-3.6.3-signed.exe.
      2. Run the unattended installer using ADDLOCAL="all" (e.g., msiexec /q /i mongodb-win32-x86_64-2008plus-ssl-3.6.3-signed.msi INSTALLLOCATION="mongo" ADDLOCAL="all" /l*v mongo-all.log)
      3. Uninstall both mongodb and compass from Add/Remove Programs
      4. Re-run the unattended installer (e.g., msiexec /q /i mongodb-win32-x86_64-2008plus-ssl-3.6.3-signed.msi INSTALLLOCATION="mongo" ADDLOCAL="Server,Client" /l*v mongo-client-server.log)
      Show
      Download mongodb-win32-x86_64-2008plus-ssl-3.6.3-signed.exe. Run the unattended installer using ADDLOCAL="all" (e.g., msiexec /q /i mongodb-win32-x86_64-2008plus-ssl-3.6.3-signed.msi INSTALLLOCATION="mongo" ADDLOCAL="all" /l*v mongo-all.log) Uninstall both mongodb and compass from Add/Remove Programs Re-run the unattended installer (e.g., msiexec /q /i mongodb-win32-x86_64-2008plus-ssl-3.6.3-signed.msi INSTALLLOCATION="mongo" ADDLOCAL="Server,Client" /l*v mongo-client-server.log)
    • Build 2018-04-23
    • 13

      Summary

      • Unattended installation documentation does not explicitly mention that Compass will be installed when using ADDLOCAL="all".
      • Unattended installation does not appear to work unless Compass is selected.

      Details

      The Install on Windows page of the mongodb manual provides a section describing unattended installations.

      When using ADDLOCAL="all", the installer downloads and installs Compass. I do not want Compass, so I uninstalled both Compass and mongo CE before re-installing using ADDLOCAL="Server,Client". This causes the installer to fail and roll back the entire installation.

      MSI (s) (68:E0) [10:11:35:725]: Executing op: ActionStart(Name=InstallCompassScript,Description=Installing MongoDB Compass... (this may take a few minutes),)
      MSI (s) (68:E0) [10:11:35:738]: Executing op: CustomActionSchedule(Action=InstallCompassScript,ActionType=1025,Source=BinaryData,Target=WixQuietExec64,CustomActionData="C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command "& '' ; exit $($Error.Count)")
      MSI (s) (68:7C) [10:11:35:759]: Invoking remote custom action. DLL: C:\windows\Installer\MSI3154.tmp, Entrypoint: WixQuietExec64
      MSI (s) (68:A0) [10:11:35:760]: Generating random cookie.
      MSI (s) (68:A0) [10:11:35:769]: Created Custom Action Server with PID 7948 (0x1F0C).
      MSI (s) (68:78) [10:11:35:826]: Running as a service.
      MSI (s) (68:78) [10:11:35:830]: Hello, I'm your 32bit Impersonated custom action server.
      WixQuietExec64:  The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command 
      WixQuietExec64:  name, a script block, or a CommandInfo object.
      WixQuietExec64:  At line:1 char:3
      WixQuietExec64:  + & '' ; exit $($Error.Count)
      WixQuietExec64:  +   ~~
      WixQuietExec64:      + CategoryInfo          : InvalidOperation: (:String) , RuntimeException
      WixQuietExec64:      + FullyQualifiedErrorId : BadExpression
      WixQuietExec64:   
      WixQuietExec64:  Error 0x80070001: Command line returned an error.
      WixQuietExec64:  Error 0x80070001: QuietExec64 Failed
      WixQuietExec64:  Error 0x80070001: Failed in ExecCommon method
      CustomAction InstallCompassScript returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
      MSI (s) (68:E0) [10:11:36:320]: Note: 1: 2265 2:  3: -2147287035
      MSI (s) (68:E0) [10:11:36:322]: User policy value 'DisableRollback' is 0
      MSI (s) (68:E0) [10:11:36:322]: Machine policy value 'DisableRollback' is 0
      Action ended 10:11:36: InstallFinalize. Return value 3.
      

            Assignee:
            mathew.robinson@mongodb.com Mathew Robinson (Inactive)
            Reporter:
            mbartenschlag Matthew Bartenschlag
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: