简体   繁体   中英

How To Deploy C#/WPF Application With SQL Server Database

I am trying to deploy an application I have created which uses a SQL Server Database (.edmx file). The database was created uses SQL Server Management Studio. What are the steps I need to take to get this application deployed? It needs to create a blank DB with all of the tables when installed.

I would highly recommend using WIX: http://wix.codeplex.com/ This is how to do SQL database stuff with WIX: http://weblogs.asp.net/cibrax/archive/2005/03/30/396338.aspx .

Some other options worth investigating if you don't like Wix are:

Click Once: http://msdn.microsoft.com/en-us/library/t71a733d%28v=vs.80%29.aspx InstallShield: http://www.flexerasoftware.com/products/installshield.htm

I believe Microsoft used Wix for the Office 2010 installer. It seems this is the way microsoft is pushing. Wix is free, opensource and extensible with c#. Installshield would be the runner up to me, its closed source I believe and costs money. It is quite famous and is likely quite feature rich.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM