7
Answers

how to create setup file in visual studio 2012 with data bas

Photo of Ziddi Khattak

Ziddi Khattak

8y
283
1

how to create setup file of win form application in C# visual studio 2012, i'm very new in this, when i make setup file, it work in my pc but not working on another pc, due to no database reason, so how i can embed database in my setup file ???

please any one have idea ?

thnks for reading

Answers (7)

1
Photo of Salman
NA 2.5k 22.3k 8y
Hi.
Please follow this article to create setup and here you can add your database also,
http://www.c-sharpcorner.com/uploadfile/cb88b2/simple-steps-to-create-setup-file-using-install-shield-le-fr/
otherwise without adding your database you can directly connect to a server database with in App.config as connectionstring. In the above case no need to add the db in setup file.
thanks. 
1
Photo of Suvendu Shekhar Giri
NA 7k 83.2k 8y
Share the details of the database. Which database are you using? 
0
Photo of Bikesh Srivastava
NA 19.8k 835.2k 8y
Hi,
Once you go to create exe,you need to add prequsitics of sql server,
after that when you will go to install on other system ,that will create database in your local system and will work fine. 
0
Photo of Mani Kandan
NA 2.6k 135.8k 8y
Hello everyone,
 
I am thinking. You have to use WebService for access your mysql database in Window Applicaiton. Then Install mysql in Admin computer and access that database through the webservice.
 
And I also have a question also. How can I install mysql database automatically when installing my WPF Windows application? For example, If we are installing adobe and like that then installing, supporting file automation like that.
 
Thanks,
Abhilash.J.A 
0
Photo of Salman
NA 2.5k 22.3k 8y
Hi.
I got your point. When you created the setup file in your local and you gave the connectionstring of your local.After your setup file created and now you are trying to install the setup file in another pc and at that time the connectionstring of your pc and that pc is different. So when you run the setup file and try to do any operation in other pc then it will show error. For this you can use a server then that will be better otherwise  you can embed the db also . see that below article. Let me know if you need anything else.
thanks. 
0
Photo of Ziddi Khattak
NA 46 923 8y
salman jiger yeh mai nay dekha pehlay bhi padha tha, yeh to apnay pc may kaam krta hai dosray may nai karta, mai chahta hoon keh hr pc kaam karay chahay us pc may sql server install ho ya na ho, agr kuch pata ho then tell me
0
Photo of Ziddi Khattak
NA 46 923 8y
hi shekar,
 
i.m using mysql, and i want to embed db in my project which work in any other simple pc, mera mtlb hai keh agr dosray pc pay sql server install na bhi ho tab bi yeh kaam karay, aisa ho sakta hai kiya ??? and sorry for writing in hindi, i'm also very new with english :)