I am calling MongoDB installer from Advance installer as a prereq and making a windows service of MongoDB. If a user doesn't change default installation path of MongoDB every works fine.
If a user changes the installed path of MongoDB then I am not able to get installed path of MongoDB to make MongoDB server as windows service. Let's suppose user changes the default path to D:/Mongodb.
Could you please help me, where is installed path of MongoDB in windows registry or please suggest any other method to get the installed path of MongoDB on windows?
You can install Mongodb silently(unintended install). You can change install location and other things by package parameters.
msiexec.exe /q /i mongodb-win32-x86_64-2008plus-ssl 3.6.4-signed.msi INSTALLLOCATION="C:\Program Files\MongoDB\Server\3.6.4\" ADDLOCAL="all" SHOULD_INSTALL_COMPASS="0"
In Advanced Installer, add MongoDb as prerequisite and then go to Setup Files tab. There set all 3 fields from "Install Command Lines" to:
/qn INSTALLLOCATION="C:\Program Files\MongoDB\Server\3.6.4\"
ADDLOCAL="all" SHOULD_INSTALL_COMPASS="0"
Related
I have downloaded the .msi multiple times and tried to run in a variety of ways, however, I cannot install MongoDB on my windows 10 machine. When I click the .msi, I get the first "preparing to install" pop-up and then it just goes away. Nothing happens.
I tried downloading the zip folder which contains a bunch of .exes.. but still nothing. I'm not sure how to get this to work on my local.
Thoughts?
For some reason, the latest documentation doesn't include the manual installation process.
Download the distribution ZIP and extract it to c:\mongodb\ or equivalent.
Then from the resultant bin directory you can run an administrative powershell command (be sure to replace the paths with real paths that exist on your system):
PS C:\mongodb\bin> ./mongod.exe --install --logpath="c:\\path\\to\\logfile.log" --dbpath="c:\\path\\to\\data\\on\\disc"
This will create a windows service named "MongoDB" which should start automatically. If it doesn't, you can run net start MongoDB from your admin PS prompt.
Please download Mongodb from there official sites and also there is a very easy guide to install the mongodb on various OS.
Reference:- https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/
I ran the MongoDB Community Version Download Setup with the GUI for Mongo -
Compass checked. No problems with the installation and the setup was successfully completed.
However after the setup I couldn't find Compass installed anywhere in my system.
Even the C:\Program Files\MongoDB\Server\3.6\bin didn't have a executable file or dll for compass.
What happened to Compass?
For some reason in Windows 10 it is installed into the hidden AppData directory. At least I found first a shortcut 'MongoDB Compass' here:
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MongoDB Inc
and then in the properties of it the actual location seems to be
C:\Users\<username>\AppData\Local\MongoDBCompass\MongoDBCompass.exe
I wound up downloading and installing Compass separately. It's available from the Download Center. You can select the version and OS there: Compass Download Options.
The installer lets you choose the destination directory. You can also add a Desktop shortcut in Windows.
Hope that helps!
Dave
I had an issue where MongoDB installer wouldn't work at all so I had to choose customize instead of the easy install. The location of the file for Compass should be in:
C:\Users\User_Name\AppData\Local\MongoDBCompassCommunity
as #Jonez said, mine is for the Community edition. Make sure you have your hidden files view enabled. On a side note, I encountered less problems when I used administrative capabilities.
I was having the same problem
Step 1: Make hidden folder visible
step 2: C:\Users\shankar\AppData\Local\MongoDBCompassCommunity
Step 3: Click on MongoDBCompassComunity edition
You will have compass gui open
Enjoy your Compass Community Edition
For me, the compass was not installing at all, but I was getting successful message like you.
I figured that there is InstallCompass.ps1 powershell script in the bin folder.
I opened powershell and got into bin folder and launched it
cd C:\Program Files\MongoDB\Server\4.4\bin
.\InstallCompass.ps1
...and voila! it downloaded and installed the compass appropriately using command line
I found exe in following paths:
C:\ProgramData\<your user id>\MongoDBCompass\MongoDBCompass.exe
C:\ProgramData\<your user id>\MongoDBCompass\app-1.11.1\MongoDBCompass.exe
After installing the Mongo DB Compass .msi Setup installer.
Go to C:\Program Files (x86)\MongoDB Compass Installer and run that setup.
Connect your DB.
I'm on windows 10 and can confirm compass even after checking install compass option during installation did not install. That wasn't surprising considering compass is 158 MB and mongo db download was very quick.
Actually, I got the same problem in windows 7 when I downloaded MongoDB Compass Zip file from https://www.mongodb.com/try/download/compass and run 'MongoDBCompass.exe'
Then I downloaded the .msi file instead of zip, installed the .msi file and 'MongoDB Compass' icon added in the start menu.
Click on the 'platform' option and select MSI.
I was having the same problem with the msi installer, I tried with the exe and it worked.
I also had the same issue. And I have found that, it occurred when try to install the mongo db more than one time.
I installed MongoDB manually on the MongoDB website. https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/
I followed the instructions under "Install MongoDB Community Edition Manually".
How do I uninstall MongoDB completely? I have searched around and only found how to uninstall using Homebrew. I did not install MongoDB using Homebrew.
Any help is greatly appreciated.
Just follow the manual install steps in reverse order:
shutdown mongod
remove your data directory (if you no longer want this)
remove the directory with the MongoDB binaries
remove the directory with the MongoDB binaries from your shell PATH
Other files that might have been created depending on how you ran MongoDB:
there may be old log files to remove if you specified a --logpath outside your data directory
there may be a launchctl script and configuration file to remove if you configured mongod to run as a service
I am trying to install Sitecore PowerShell Extensions-3.0 Package for Sitecore 8
in my sitecore 8 instance (Windows 8.1 machine).
I used Sitecore's Development Tools -> Installation Wizard & Package Manager and choosing the above mentioned package. It shows Install a Package sitecore dialog with Installing gif and stays there for over an hour and nothing happens. No error nothing it just spins.
First I tried other Packages and it was the same, even with lower versions of Powershell Packages and it still doesn't install.
Can someone shed some lights on what I am missing?
When installing Sitecore packages entries are written to the Sitecore Log. In Sitecore 8 the Logs are stored in MongoDB, so if you don't have Mongo running installing packages appears to hang.
Although disabling Mongo Analytics allowed you to install the package it is not a suitable method moving forward. Instead you should install MongoDB and then get the Sitecore DBs running by executing a .bat file.
To do that open Notepad paste the text as it below, modifying the path to the MongoDB.exe and folder containing the Sitecore Mongo databases if required, then Save As SitecoreDbs.bat
"C:\Program Files\MongoDB 2.6 Standard\bin\mongod.exe" -dbpath "C:\inetpub\wwwroot\Sitecore8\Databases"
Essentially the path to your MongoDB executable location and the Path to your Site's databases.
By disabling Mongo Analytic did the trick.
I'm on a Windows 7 (64-bit) box and do not have admin rights.
It appears from the MongoDB download page (see http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/) that the latest version only an MSI install is available (no zip version).
I tried running the 3.0.4 MSI. I clicked custom so I could change the directory to install to. I used %USERPROFILE%\MyProgs\MongoDB-3.0.4, so no admin rights would be needed. It ran for a bit but then prompted me to enter admin credentials. I hit escape (like clicking on X at top right) to close the window. On other MSI installs this has worked. I tried it again and clicked "No" but in both cases received the message
MongoDB 3.0.4 2008R2Plus SSL (64 bit) setup was interrupted.
Your system has not been modified. [...]
This article does a GREAT job going through how to install MongoDB on Windows:
How to install mongoDB on windows?
My observation is that v2.4.14 is the last version that is available via the ZIP format. So for now, I'm using that version.
Is there any other way to install the MongoDB version 3.X MSI without admin rights?
NOTE: On the MongoDB Download page https://www.mongodb.org/downloads there is a link titled View Build Archive (it sends you here https://www.mongodb.org/dl/win32/x86_64-2008plus-ssl, and that site lists *.zip formatted files). I thought I had found my own solution to the question, but when I unzipped the files, and added the "bin" to my path and ran the programs (mongo, and mongod) I received an Windows Dialog that says:
mongod.exe - System Error
The program can't start because LIBEAY32.dll is missing from your
computer. Try reinstalling the program to fix the problem
I stopped here and posted this question. Thanks for any help.
For now I'm using the version that supported the zip format (v2.4.14) and that version does work.
NOTE2: The v2.4.14 zip formatted install doesn't have a file named LIBEAY32.dll), or I might have tried using that file with the newer version.
Yes, it is possible to install the latest MSI (including the one with SSL) without admin rights via command line.
msiexec /a mongodb-win32-x64-3.2.5.msi /qb TARGETDIR="C:\MongoDB"
This will copy the binaries into C:\MongoDB\MongoDB\Server\3.2\bin
I dislike long paths like that, so I create a symlink inside the folder:
cd C:\MongoDB
mklink /j bin C:\MongoDB\MongoDB\Server\3.2\bin
That will create a soft link as C:\MongoDB\bin (which you can add to your PATH environment variable).
mongo --version
mongod --version
Both should return version 3.2.5.
You can do this with most packages, we have to do similar with Python 2.7 and Node 4.4.3 MSI packages on work computers that do not have admin rights.
You can download the "legacy" version which is the unsigned non msi version as a zip. The disclaimer is listed as
The 64-bit legacy build does not include SSL encryption and lacks
newer features of Windows that enhance performance. Use this build for
Windows Server 2003, 2008, or Windows Vista
The 3.0.5 version is https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-3.0.5.zip
The latest version is available as zip download.
[https://www.mongodb.com/dr/fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.6.zip/download][1]
Download and Unzip into folder where user has permissions e.g c:\users\xxx\mongodb.
Enter the path to bin folder (e..g c:\users\xxx\mongodb\bin) into the
environment variable 'PATH'. To access path variable press Win + R
and then enter rundll32 sysdm.cpl,EditEnvironmentVariables.
Select Path and click edit. Then enter new and there enter the path
to bin folder. Click OK and OK to save and exit.
Check Mongo version from command line using command mongo --version.
Note: Don't forget to create db folder in C drive that is required for mongo to work locally. All set.