how to check mongodb is installed or not code example
Example 1: how to check if mongodb is installed
Open the command prompt and type "cd c:\program files\mongodb\server\your version\bin". After you enter the bin folder type "mongo start". If you get either a successful connection or failed one it means it's installed at least.
Example 2: check if mongodb is installed
mongod --version