Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# SQL .NET setup
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 Smile | :)
Posted 25-Apr-13 23:41pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^].
  Permalink  
v2
Comments
alaa ]fateh at 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 at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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!
  Permalink  
Comments
alaa ]fateh at 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)

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 130
4 DamithSL 105
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 28 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100