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

mongod --install uses wrong image path depending on current working directory

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.0.7, 2.1.0
    • 1.6.5, 1.8.1
    • Shell
    • None
    • Windows Server 2008 x64
    • Windows

    Description

      In our deployment I add the <mongodb install folder>\bin folder to the System PATH environment variable to save having to change to the MongoDB folder everytime I need to use commandline tools like mongo and mongodump. When I run "mongod --install..." from a working directory anywhere but the bin folder, the installer defaults to configuring the image path of the service in the registry to "C:\windows\system32\mongod.exe" and therefore the service won't start. It's easy to fix afterwards in the registry, or to run the installer from the bin directory but the documentation doesn't make this issue clear.

      Shouldn't mongod be able to find the path it is installed to and use that for the service configuration.

      Attachments

        Activity

          People

            tad Tad Marshall
            milhouse Steven Hirschorn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: