Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to create a window app's setup file that include the sql server also with the database backup file. I have try but not got sucess . So kindly help me...
Posted
Updated 29-Jul-15 22:04pm
v2
Comments
himanshu agarwal 30-Jul-15 4:16am    
What did you try, a WIX setup?

I would recommend:
http://www.jrsoftware.org/isinfo.php[^]

Very easy and fast to learn for simple application. A small wizard also helps you.
 
Share this answer
 
The thing is do not deploy the setup along with a database file. First let us talk about installer, in .NET framework you can use Installer[^] class to run custom install functionality on Windows. This class would allow you to run Install or Uninstall function, in which you can manage how to deploy the files, and how to remove the files from the system. Including databases and other system required library files to run the application.

If you look at the MSDN document, you will see that they have provided an example in which you actually inherit the Installer class and use your own logic. .NET framework won't prevent you from doing anything while your Install function is executing. You can surely deploy SQL databases, transfer required (.dll) libraries and many more such functions.

A good approach would be to check whether application is able to run or not. Whether machine supports the frameworks, if it does, then install those frameworks first.

Now, a consideration as to why not share the SQL database backup file with the client is that you do not know until now what are the features of their machine. Do they have SQL server installed, would it allow your application to run that server, would it even run that back up file to get the data? Many such conditions.

It is better, to create a new database on the client's machine, if they have SQL Server instance. .NET framework also needs you to make sure that the assemblies are available for your application.

If you still need to deploy the database back up file, then first install SQL Server on the machine.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900