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.
Jørn Borgen16 pointsPosted Jan 13, 2015, 12:22 PM EST
Code:
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
Mohammad Hamza KhanRank #5,059 · 304 pointsPosted Jan 13, 2015, 10:28 PM EST
shiju kv59 pointsPosted Jan 13, 2015, 5:56 PM EST
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
Mohammad Hamza KhanRank #5,059 · 304 pointsPosted Jan 13, 2015, 6:11 PM EST
shiju kv59 pointsPosted Jan 13, 2015, 6:19 PM EST
Jørn Borgen16 pointsPosted Jan 14, 2015, 11:55 AM EST
-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
shiju kv59 pointsPosted Jan 14, 2015, 7:30 PM EST