How to run another .EXE from my application setup ( VS 2010 ) - c#

I have a wpf application and I made a setup, and during installation i need to create database, and edit Connectionstring (app.config). So I made CustomAction add Installer.cs and override Install method and it done.
Now i need to install SqlServer Express from my setup, ie before creating database I should check whether the machine have installed sqlserver if not it should install form my application setup.
As far i know using process.start() i can run exe, but problem i am facing where i should keep sql.exe and how to get path
provide any usefull link much appreciated
ScreenShot:

You can use dotNetInstaller or similar bootstrapper. This solution create only one installer that install other pre-requisites and then execute your Visual Studio setup.

Related

How to create .exe with C# winforms Application & MSSQL Database in Advanced Installer Architect

I'm facing severe issue while creating .exe file of my C# WinForms Application using Advanced Installer Architect. I'm not getting to know how exactly to create an exe file with MSSQL Database.
Kindly help me solve the issues:
I want MSSQL Database to be installed automatically on the system if it doesn't exist.
I want to know what should be the datasource in my application while building it.
I also want the tables should be created automatically t the now installed MSSQL Server Database.
Kindly help me with this issue!
If you are using Visual Studio then you already have exe created.
visual studio is much smarter. and its creating exe every time we run our win form application.
you can find exe in your projectfolder/bin/debug/yourexe.exe

Making installation file for windows application in C#.net

I have completed my windows application. I have used SQL Server 2008 as database server. Now, I want to prepare an installation file for my project. The Installshield is not working either. Isn't there an alternative way to prepare the installation file?? Also, I've been running the database in windows authentication mode. As I have set my laptop name as the data source, will it work after making the installation file??? I need help. Can anyone get me out of this problem???
The preferred way to create installers is the Windows Installer Xml Toolset (Wix). There are a lot of tutorials on the net that will help you create your installer.

How to Deploy C# .net application with MongoDB

I am new to mongoDB. I would like to ask for help about deployment of a C# .net app with MongoDB. I tried to publish it but when I run, it goes not working. I know the error is that I need to manually run mongod.exe through C:/mongodb/bin/mongod. But how can I setup it without manually run the mongod.exe? Your help is highly appreciated. Thank you :)
You should understand that your .NET application and Mongo database are different parts of the system. They even can be placed on different machines. So, publish of your application shouldn't affect availability of database.
However you can combine these two actions in one simple batch file:
msbuild.exe [your app with necessary options]
C:/mongodb/bin/mongod.exe [options]
On how to build and deploy web-apps via msbuild you can see here:
How to Publish Web with msbuild?
Invoke a publish from msbuild for visual studio 2012
Invoke a publish from msbuild for visual studio 2012
You probably want to set up mongodb to run as a windows service, rather than manually starting the server on demand.
Instructions can be found here:
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/

How to make generic installation for my program

How to make generic installation for my C# program, that will work on Win XP, Win 7 32bit and Win 7 64bit ?
I need that all the related components (like Framework... Crystal Reports...MDAC....) will be include and will install only the program that the OS is missing
Thanks in advance
What version of Visual Studio are you using? It matters, because if you're using Express, you're going to need a 3rd party tool If you're using Professional or higher, you can just create a Setup project as described here:
http://support.microsoft.com/kb/307353
if you weren't worried about required components, of course, you could just do an XCOPY deployment, but since you specifically need your prerequisites included with the install, you need to use a tool like the setup project 9which creates an MSI file) or using a third party tool like Installshield.
i think
1- Create 3 separate packages for (Win Xp,Win7-32 , Win7-64)
2- Ask user if user is downloading from the website and push require download from the server. Alternatively , you can write a samll silverlight based application to get the details of user machine.
3- If 2 point is not true than while installing on a user machine get the details first and choose manually which pakage to install.
why i am telling to create specific package because of Microsoft issues pathches time to time and you may need to change the package so keep it seperate will definately help you.

Error while installing a .net setup executable locally

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

Categories

Resources