Click here to Skip to main content
15,881,666 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I am developing an offline winform application for dataentry. Is it possible for me to include the database file within the application setup itself?Obviously, I dont want to give mdf file separately to the user and ask him to place it in C drive at a specific location. user should be able to just install the setup and start with the dataentry. Also please give me suggestions on how i can allow user to create back ups of the database (mdf) files? other than manually going to the mdf file and copy pasting it to some other place.
Posted
Updated 14-Oct-19 8:05am
Comments
Sergey Alexandrovich Kryukov 13-Oct-14 2:42am    
All setup toolboxes allows you to add any files in deployment. How? It depends on what do you use.
—SA
Arbaaz Jalil 13-Oct-14 3:08am    
I am new to winforms. Lets say I include mdf file in the setup. Will user be able to copy the mdf to another location? To create back of Data? If he can not then he will not be able to back up data. If he can it then it means he can attach the mdf to sql server management studios and alter procedures etc

Sergey Alexandrovich Kryukov 13-Oct-14 10:26am    
How is that related to "winforms"? Setup is setup. What do you use for setup project?
—SA

1 solution

Refer the link for the step by step instructions to create a setup file including the mdf file :
http://www.msdotnet.co.in/2013/07/how-to-create-setup-fileexe-with.html#.VEI-V_mUf14[^]
 
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