You can also work around this by creating the service by hand:
sc create mongodb binPath="c:\mongodb\mongodb.exe --service
<Add_Additional_Parameters>"
sc create MongoDB binPath= "\"C:\Program Files\MongoDB 2.6 Standard\bin\mongod.exe\" --service --config=\"C:\Program Files\MongoDB 2.6 Standard\mongod.cfg\"" DisplayName= "MongoDB 2.6 Standard" start= "auto"
Yes,i also meet this problem ,So I look up in the bug report dashboard ,then I found this is a bug for mongodb 2.6.
Please put this into the mongodb installation document so people don't waste their time trying to setup a service. The instructions claim that it works. I also would put in a test case for the installation document so it gets tested every time the software gets a new release.