Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have created a project of shop management>Project folder is E:shopmanagement and database is in E:database\shop.mdf .How can I create a setup of this project.When I created setup of it.Database error was shown how to create a setup along with the database.

Please Help.....
Posted
Updated 5-May-11 1:35am
v2

Hello,

1. Keep that database file within the project creating folder App_Data.
2. Declare the connection string into app.config file and use this connection string to connect with database.
3. Now create the setup project it will not give any error and will run fine.

Vote if this answer helps you.
Reply if more help needed.

Regards
Pavanraje Dongare
 
Share this answer
 
Look at the answers given for the similar question asked here[^].
Various article links are present in it that will help you achieve the same.

Have a look at these too:
Creating setup With support for database creation Using VS.NET[^]
Create database during installation of a .NET application [^]
Deploy your Application and Database[^]
 
Share this answer
 
If problem only in DB you can use solution 1. I have solved similar situation by creating hand made installer from scratch (winforms) but in my case I was need to deploy web app, install it on ISS, deploy DB, deploy 2 scheduled app, change config files, etc specific tasks. There is no need of this in current case.
 
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