I am trying to deploy a WPF Project that uses MongoDB. I want to create a One-Click installation system for the client who does not have any idea about computers. I tried creating a batch file but the best it does is, it starts the MongoDB setup file. Is there any possible way, I can install MongoDB without using their installer and bundle it with my deployed project?
You can install mongoDB unattended on Windows.
Just use the msi installer like this
msiexec.exe /l*v mdbinstall.log /qb /i mongodb-win32-x86_64-2008plus-ssl-4.0.9-signed.msi
For more details check out their official documentation on this regard here
Related
I am trying to create a windows installer which will include both the application setup files as well as the setup file for the Postgresql Database(if not present in the installed system) with some ddl scripts which will run post installation.
Request you to please guide me on how should i go ahead with meeting the requirement.
WiX allows you to create installer bundles. This means you can package PostgreSQL and your application in a single installer and let it install PostgreSQL (and other prerequisites) before your application. Other installer solutions have similar capabilities.
I have WPF application which using Postgresql as Database engine. I want to install Postgresql engine and restore/attach application-Db to it.
The application's users are non-technical people and they can not install Postgresql individually.
The application's users are non-technical people and they can not install Postgresql individually.
then try this , silently install PostgreSQL, we are using the similar code in our software deployment
C:\Installer\postgresql-9.0.2-1-windows.exe --serverport 5432 --servicename postgres_service --locale C --superaccount Myadmin --superpassword Mypassword --unattendedmodeui minimal --debuglevel 2 --mode unattended
run this as the bat file , install in the background
postgresql-9.0.2-1-windows.exe
This is your exe
serverport 5432
This is your port number where you want to install Postgres
superaccount Myadmin
You use account name
superpassword Mypassword
Your user password
keep the rest same.
This will directly install to c:\Program Files
I presume you want to deploy on Windows, so you can include PostgrSQL in your application installer, you can create an application installer for example with InnoSetup ...
Here are the details of Postgresql silent install on Windows. Installers can downloaded from here. Once it's installed then you can run your db script off-course.
I am trying to make the setup file of my appllication. i already made the deployment process and also been success to build the setup file as .msi file. but to run my application on other computer there need othe software to install like SQL server 2005 so that my database file can support on that system. also it need some other software to install. so i want to embed on my software the all necessary s/w and suppossed to install during installing my application. so i need to know what to do during deployment to attach these software.
what the solution for it in C#?
Usually you'll do this through your application's installer (ie, InstallShield, Inno-Setup, etc). Installers generally have the capability to launch other programs and/or incorporate other install scripts. Also, some installers will allow for hands-off installations (usually done with command-line switches), so that the install of the dependent program is seamless.
I have created a setup for my windows application in .NET 2008
After building the same i have the .msi and setup.exe files in my release folder.
The problem i am facing is :
I can install the application using the msi installer files from the shared network folder. But when i copy the installer locally and tried to install it,
i get the following error: Error reading file.Please Try again.
Anybody having any ideas if there are any properties to set in the installer project.
Regards
Constant Learner
Just a thought, you can use Orca to go through the .msi and see if you're having any static references to your development machine within your msi.
The application is a simple windows application without any database associated with it.
Its just a hello world windows application. So i presume its something related to the configuration part of the installation...
Constant Learner
I want to make an advanced installer for my C# application. |I want my application continue its installation after the pre-requisites been installed.
My scenario is:
myApplication requires .net Framework 2
it redirects the user to the Microsoft website.
the user installs the framework.
the installation requires to restart the PC.
STOPPED INSTALLATION
After this step (after restarting) I want myApplication to continue the installation (go to the last stage of the installation)
Any suggestion on how I do this ?!?!
I would suggest taking a look at the nullsoft install system. Use the Modern UI theme and the DotNET macro (http://nsis.sourceforge.net/DotNET). That's everything that you are looking for prebuilt, for free, and you can be up and running with very little effort.
I've had experience releasing applications with this route and it works very well.
Things like InstallShield, or one of the other installer creation tools would be able to handle the pre-requisite side of things for you. If you want to roll your own, then you could check for the framework, perform the various steps you mentioned to install it, then add you setup application to the RunOnce registry key so it starts again on startup.
Looking at something that would handle all the pre-requisites etc for you would be my choice though :-)
Install in this order:
Install the .NET framework
Install your app.
Restart if needed.
You can create an installation project in VS2005/8 to handle installing your app and any needed dependencies.
Are you aware that your compiled c# app itself will do this? The bootstrapper compiled into a .Net exe will contain a redirect to get the framework with a working link to the microsoft website.