[SERVER-39111] msiexec installation fails with any ADDLOCAL values during UpdateMongoYAML Created: 21/Jan/19  Updated: 21/Jan/19  Resolved: 21/Jan/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Alex Bevilacqua Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: installer, windows-10
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 10


Attachments: Text File mdbinstall.log    
Issue Links:
Duplicate
duplicates SERVER-39025 Windows MSI unattended installation m... Closed
Operating System: ALL
Steps To Reproduce:

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"

Participants:
Case:

 Description   

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.



 Comments   
Comment by Danny Hatcher (Inactive) [ 21/Jan/19 ]

Dupe of SERVER-39025

Comment by Alex Bevilacqua [ 21/Jan/19 ]

This issue was raised as a result of wanting to install only the client tools (minus mongod.exe), so a suggested workaround is to run without the ADDLOCAL parameter and then just remove the mongod.exe file.

Generated at Thu Feb 08 04:51:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.