简体   繁体   English

如何在Visual Studio 2010中使用SQL Server 2012数据库打包和部署C#桌面应用程序?

[英]How to package and deploy a C# desktop application with a SQL Server 2012 database in Visual Studio 2010?

I have created a database application using C# in Visual Studio 2013. It uses SQL Server 2012. I don't know how to package my database in the .msi package for this application. 我已经在Visual Studio 2013中使用C#创建了一个数据库应用程序。它使用了SQL Server2012。我不知道如何将数据库打包到该应用程序的.msi包中。 Please help me in writing a script to create the database and setup its connection strings. 请帮助我编写脚本来创建数据库并设置其连接字符串。 So that I can install and run the app using SQL Server on any other PC besides my own computer where I am developing the app. 这样,除我自己开发应用程序的计算机外,我还可以在其他任何PC上使用SQL Server安装和运行该应用程序。

The way I saw it in a commercial project was: 我在一个商业项目中看到的方式是:

  1. Create an msi installer for your own application using WiX . 使用WiX为您自己的应用程序创建msi安装程序。
  2. Get the msi package for SQL server installation. 获取用于SQL Server安装的msi软件包。
  3. Create custom installer in wix or in a programming language you know. 使用wix或您已知的编程语言创建自定义安装程序。 It will use Deployment Tools Foundation to run SQL msi and your app msi. 它将使用Deployment Tools Foundation运行SQL msi和您的应用程序msi。
  4. Pack it all into nsis package so you have a single Installer.exe file as an output. 将其全部打包到nsis程序包中,以便您将单个Installer.exe文件作为输出。

Also check: 还要检查:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用C#连接到SQL Server 2012数据库(Visual Studio 2012) - Connect to SQL Server 2012 Database with C# (Visual Studio 2012) 在Visual Studio 2012 C#中连接到SQL Server数据库 - Connection to SQL Server Database inside Visual Studio 2012 C# Visual Studio 2015 C#将应用程序部署到桌面 - Visual Studio 2015 C# Deploy Application to Desktop 如何在Visual Studio 2012中部署具有所有依赖项的C#项目 - How to Deploy c# project with all dependencies in visual studio 2012 如何在Visual Studio 2010中使用我的设置和部署项目部署SQL Server数据库? - How can I deploy the SQL server database with my setup and deployment project in Visual Studio 2010? 如何使用ClickOnce部署我的C#(4.0)Visual Studio 2010基于Windows窗体的应用程序? - How to use ClickOnce to deploy my C#(4.0)Visual studio 2010 windows form based Application? 如何使用SQL Server数据库部署C#/ WPF应用程序 - How To Deploy C#/WPF Application With SQL Server Database 如何使用Winform Application部署和附加SQL Server Management Studio 2012数据库? - How to deploy and attach SQL Server Management Studio 2012 Database with Winform Application? 如何使用一些 RAD 工具或 Visual Studio 2010 在 C# winforms SQL 服务器中获取模板化的起始数据库驱动的 forms - How to get templated starter database driven forms generated in C# winforms SQL Server using some RAD tool or Visual Studio 2010 在尝试使用C#连接到Visual Studio 2010中的本地SQL Server数据库时遇到问题 - Having problems trying to connect to local SQL Server database in Visual Studio 2010 using C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM