Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to build a setup file that contain windows form application that is connected to sql server how can I do that? I want to put the .net framework and sql server in the setup package how can I do that? do I need sql server or sql express in this case? I want to create the database in the installation process how can I do this? I want to check If the requirements are already installed how can I do this? hw can I improve the security of the program from stealing?? please help thanks

note my English language not good enough :)
Posted

You would need to create a setup that creates/deploy database along with your application install.

Have a look at these:
Creating setup With support for database creation Using VS.NET[^]
Create database during installation of a .NET application [^]
Deploy your Application and Database[^]

Here, refer: MSDN: Adding Custom Prerequisites[^]

Also, look at the answers given for the similar question asked here[^].
 
Share this answer
 
v2
Comments
alaa ]fateh 28-Apr-13 2:55am    
thanks for u
but how can I install the sql while insalling operation....
I want to install sqlserver without showing the sqlserver installing interface
could any one help?
Sandeep Mewara 28-Apr-13 2:57am    
That would be part of prerequisite. You would need to install SQL express if missing just like installing a .NET framework if missing.
Right click on your setup project and choose properties! in the Property pages window choose 'Prerequisites' ...! in the shown window you can choose which one of the .net version, sql version required on target pc!
for more information check this article on codeproject:
Add Prerequisites of .NET Framework in Visual Studio Setup Project

hope help!
 
Share this answer
 
Comments
alaa ]fateh 28-Apr-13 2:55am    
thanks for u
but how can I install the sql while insalling operation....
I want to install sqlserver without showing the sqlserver installing interface
could any one help?

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