Re: I have a Windows Application in C# using mongoDB. I need to distrubute the application to my users. How will I install mongoDB on each client.

117 views
Skip to first unread message

DaveC

unread,
Jul 31, 2012, 5:40:54 PM7/31/12
to mongod...@googlegroups.com
There isn't a Windows installer package for MongoDB, but I assume you would build one for your application, correct?  if so, you can have the installation package include both your Windows .exe and the mongod.exe executable (and license files), maybe mongo.exe if you'll want to do any post installation DB administration. You will also want your installer to create the data directory where the data files will be stored, and finally configure MongoDB as a Windows service with "sc create" and finally start the service.  And on uninstall, you probably want all of this removed.  For all of this, I recommend using the open source WiX toolkit.  There is a very helpful tutorial here: http://wix.tramontana.co.hu/tutorial/getting-started

On Tuesday, July 31, 2012 5:11:18 AM UTC-4, Atif Ali Bhatti wrote:
Hello everybody,

   Please forgive me if my question sounds stupid as I am novice in mongoDB. Actually, I have a windows application developed using c# and mongoDB and I want to distribute my application to my users. What I am confused about is "How can I package my application" that it install the mongo db first and then my application so that every user has db server up and running. I hope my question is clear.

Thank you,
Atif Ali Bhatti

craiggwilson

unread,
Jul 31, 2012, 11:52:28 PM7/31/12
to mongod...@googlegroups.com
Dave's reply is good advice.

Just to ask a follow-up question...  Do you want all your user's to be running against isolated databases and not share data?  
Reply all
Reply to author
Forward
0 new messages