Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I am trying to integrate SQL server 2012 install within my WPF C# (2010) application setup project. So that whenever my application is installing on a client machine, if would check for SQL server 2012 express, .net framework & crystal reports run time , if the client machine does not installed them. the installer file should install them on the client machine, and after that attach database MDF file.

I searched several times via Google, & try several solutions with no success. :(

Can anybody guide me come out of this problem.

Thanks in advance for any help!
Posted
Comments
Gergo Bogdan 30-Sep-13 10:59am    
Why would you do that? I cannot think of any reason why would that be handy for you or your client?

1 solution

You can set your connection string with your mdf:

C# - Connect to MDF database[^]
AttachDbFileName=|DataDirector...[^]
 
Share this answer
 
v2

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