Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to create setup file in c#.net windows application with sql database
Posted

Dear Krishna,
For your required project add setup project to the solution from the File -> New Project -> Setup and Deployment.

Add the required reference and exe file with the setup project. And make the setup project as a startup project. Now build it and get the setup.
 
Share this answer
 
Comments
krishna97 14-Nov-14 23:27pm    
how can install the setup file then how can connect to sql database from another system
Senthil Sambandam 15-Nov-14 1:25am    
- The setup will create in bin folder of the setup project
- Normally for external database, we use web.config file for connectionstring declaration. The web.config file need to add as like reference file setup project. So after installing the setup, you will get web.config file also, From the web.config file you can connect to the external db.
krishna97 15-Nov-14 2:14am    
create for windows based not for web based
Senthil Sambandam 15-Nov-14 2:52am    
Okay use app.config instead of web.config.
krishna97 15-Nov-14 3:29am    
create setup file then install setup automatically connect and working in windows application

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