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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0.7, 2.1.0
    • Affects Version/s: 1.6.5, 1.8.1
    • Component/s: Shell
    • None
    • Environment:
      Windows Server 2008 x64
    • Windows

      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.

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

              Created:
              Updated:
              Resolved: