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.