Click here to Skip to main content
16,004,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys, i'm working on a software that uses an sql database. I'm trying to create an installer with the publish utility of visual studio 2008 so that i can install the software on other computers. My problem is that whenever i use the publish to create the installer, it doesn't add the sql database that the software needs to run properly. please can anyone give me a hint on how to make it work right.
thankz
Posted
Comments
Kschuler 27-Sep-11 10:46am    
How are you publishing it? ClickOnce? Setup Project? Other?

Hello Friend..

If you can Use a Setup Project, then you can add a your database file to your application folder to copy that file at your installation directory..

application.startuppath is method to get the path from where your application or project .exe file will run
then for connection string you can use a application.startuppath to get the custom path of your database

using this you can add the database to your setup file..

or please specify the type which you deploy for your project like
publishing it? ClickOnce? Setup Project? Other? as Kschuler says..
 
Share this answer
 
hi guys,
i'm publishing the project with Visual studio 2008 in built publishing tool.
I don't know if there is any other means of creating an installer for programs designed in C#. if there is please let me know.
Tejas_Vaishnav, i don't know how to use setup project. id appreciate it if you can put me through on how to use it with easy key points.
thanks
 
Share this answer
 
There is no option for adding an additional file if you use publish method as it's a default mechanism for publishing when you want to release a setup with the existing project. Please find the link to create a setup project manually which would let you add the additional sql db file to your setup.

http://vijirajkumar.blogspot.com/2010/03/create-setup-and-deployment-project.html[^]
 
Share this answer
 

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