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

msiexec installation fails with any ADDLOCAL values during UpdateMongoYAML

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      Windows 10
    • ALL
    • Hide

      msiexec.exe /l*v mdbinstall.log /qb /i mongodb-win32-x86_64-2008plus-ssl-4.0.5-signed.msi ADDLOCAL="Client,Router,MonitoringTools,ImportExportTools,MiscellaneousTools"

      Show
      msiexec.exe /l*v mdbinstall.log /qb /i mongodb-win32-x86_64-2008plus-ssl-4.0.5-signed.msi ADDLOCAL="Client,Router,MonitoringTools,ImportExportTools,MiscellaneousTools"

      When following the Unattended Installation docs, if you add any permutation of components via ADDLOCAL the installation will fail:

      MSI (s) (1C:C4) [12:58:45:224]: Executing op: ActionStart(Name=UpdateMongoYAML,,)
      CustomAction InstallCompassScript returned actual error code 1603 but will be translated to success due to continue marking
      MSI (s) (1C:C4) [12:58:45:224]: Executing op: CustomActionSchedule(Action=UpdateMongoYAML,ActionType=3073,Source=BinaryData,Target=UpdateMongoYAML,CustomActionData=BIN=C:\Program Files\MongoDB\Server\4.0\bin\;MONGO_DATA_PATH=C:\Program Files\MongoDB\Server\4.0\data\;MONGO_LOG_PATH=C:\Program Files\MongoDB\Server\4.0\log\)
      MSI (s) (1C:14) [12:58:45:226]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI28B.tmp, Entrypoint: UpdateMongoYAML
      MSI (s) (1C:C8) [12:58:45:226]: Generating random cookie.
      MSI (s) (1C:C8) [12:58:45:229]: Created Custom Action Server with PID 17324 (0x43AC).
      MSI (s) (1C:30) [12:58:45:273]: Running as a service.
      MSI (s) (1C:30) [12:58:45:277]: Hello, I'm your 64bit Elevated Non-remapped custom action server.
      CA - Custom Data = BIN=C:\Program Files\MongoDB\Server\4.0\bin\;MONGO_DATA_PATH=C:\Program Files\MongoDB\Server\4.0\data\;MONGO_LOG_PATH=C:\Program Files\MongoDB\Server\4.0\log\
      CA - BIN = C:\Program Files\MongoDB\Server\4.0\bin
      CA - MONGO_DATA_PATH = C:\Program Files\MongoDB\Server\4.0\data
      CA - MONGO_LOG_PATH = C:\Program Files\MongoDB\Server\4.0\log
      CA - YAML_FILE = C:\Program Files\MongoDB\Server\4.0\bin\mongod.cfg
      MSI (c) (A8:D8) [12:58:45:286]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
      
      Received GetLastError 2
      MSI (c) (A8:D8) [12:58:46:826]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
      
      Failed to find yaml file
      CustomAction UpdateMongoYAML returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
      

      The above was generated using the following command:

      msiexec.exe /l*v mdbinstall.log /qb /i mongodb-win32-x86_64-2008plus-ssl-4.0.5-signed.msi ADDLOCAL="Client,Router,MonitoringTools,ImportExportTools,MiscellaneousTools"

      Tested with both community and enterprise builds of 4.0.5 (same failure in both).

      Note that msiexec.exe /l*v mdbinstall.log /qb /i mongodb-win32-x86_64-2008plus-ssl-4.0.5-signed.msi will succeed.

            Assignee:
            Unassigned Unassigned
            Reporter:
            alex.bevilacqua@mongodb.com Alex Bevilacqua
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: