mkevenaar / chocolatey-packages

My chocolatey packages
https://mkevenaar.github.io/chocolatey-packages/
Apache License 2.0
42 stars 66 forks source link

Installation fails on Windows 10 #158

Open john-g-davies opened 1 year ago

john-g-davies commented 1 year ago

Installing mongodb.install... WARNING: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/lv c:\mongodb.install_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error. ERROR: Running ["C:\WINDOWS\System32\msiexec.exe" /i "C:\Users\john.davies\AppData\Local\Temp\chocolatey\mongodb.install\6.1.0\mongodb-windows-x86_64-6.1.0-signed.msi" ADDLOCAL="ServerService,Server,ProductFeature,Client,Router,MiscellaneousTools" /qn /norestart MONGO_DATA_PATH="C:\ProgramData\MongoDB\data\db" MONGO_LOG_PATH="C:\ProgramData\MongoDB\log" ] was not successful. Exit code was '1603'. Exit code indicates the following: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/lv c:\mongodb.install_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error.. The install of mongodb.install was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\mongodb.install\tools\chocolateyInstall.ps1'. See log for details.

Expected Behavior

Should install successfully with no error

Current Behavior

Installation is failing with "Return Value 3"

Possible Solution

Problem is this parameter passed to MongoDB installer is wrong:

ADDLOCAL="ServerService,Server,ProductFeature,Client,Router,MiscellaneousTools"

https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-windows-unattended/

Only options are:

ADDLOCAL="ServerNoService,ServerService,Router,MonitoringTools,ImportExportTools,MiscellaneousTools"

Steps to Reproduce (for bugs)

  1. choco install mongodb

Context

Can't install MongoDB using choco.

Your Environment

Latest package version. Windows 10, fully patched. Chocolatey version 1.2.1