hi ,
i want to make the installation file of my windws application.my database is located in c:\user\documents\templedbs.mdf.
how to add this database with the installation set up
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
shiju kvPosted Jan 15, 2015, 12:30 AM
Jørn BorgenPosted Jan 14, 2015, 4:55 PM
-Download it from a site
-Add it with the program (internal(inside your .exe) or external(as a file))
-Being accessed via a server without any download
Download:
To download a file in a very simple way you can use WebClient
Add it:
Either add it to the resources and write it from the program
-Internal
-External (just drag the file with the program. Use: Application.StartupPath + "\\*file name*) to navigate to the files location (this means that the file is in the same directory/folder as the program!)
Access from server:
To access it via an server you need to use SQL stuff. Read Here
Mohammad Hamza KhanPosted Jan 14, 2015, 3:28 AM
shiju kvPosted Jan 13, 2015, 11:19 PM
Mohammad Hamza KhanPosted Jan 13, 2015, 11:11 PM
shiju kvPosted Jan 13, 2015, 10:56 PM
user desktop folder
user programs menu
to which folder i have to copy my database file. or i need to create any special folder
....
pls answer for this sir
Jørn BorgenPosted Jan 13, 2015, 5:22 PM
Code:
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)