简体   繁体   English

如何为 C# windows 应用程序创建安装程序并集成 SQL 服务器数据库

[英]How to create a installer for C# windows application with SQL Server database integrated

I have a C# application that I want to install on my clients computers.我有一个 C# 应用程序,我想安装在我的客户计算机上。 It has a SQL Server database connection so that it can store data.它有一个 SQL 服务器数据库连接,以便它可以存储数据。 I want to create a installer so than I can install the app on clients computer.我想创建一个安装程序,以便可以在客户端计算机上安装该应用程序。

So far I tried Installer shield and advanced installer and I could not manage to pull it off.到目前为止,我尝试了 Installer shield 和高级安装程序,但无法成功。

NOTE: I can't install Microsoft SQL Server Management Studio on clients computer due to toughness.注意:由于坚固性,我无法在客户端计算机上安装 Microsoft SQL Server Management Studio。

NOTE: I'm using Visual Studio 2019 with Microsoft SQL Server Management Studio 2017 and .NET 4.5 and DevExpress and because I'm using DevExpress I have some reference files to copy to client directory.注意:我将 Visual Studio 2019 与 Microsoft SQL Server Management Studio 2017 和 .NET 4.5 和 DevExpress 一起使用,因为我使用的是 DevExpress,所以我有一些参考文件要复制到客户端目录。

If the users are not sharing their data with one another, you don't need SQL Server to begin with .如果用户不彼此共享他们的数据,您不需要 SQL 服务器以. There are other data storage options, ones that don't require an enterprise grade client-server database.还有其他数据存储选项,不需要企业级客户端-服务器数据库。

Your app can use a local database such as SQLite.您的应用可以使用本地数据库,例如 SQLite。 You can use files - JSON or XML allow for easy parsing from C#.您可以使用文件 - JSON 或 XML 允许从 C# 轻松解析。

暂无
暂无

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

相关问题 如何使用SQL Server为C#Windows应用程序创建安装程序包 - How to create a setup package for C# Windows application with SQL server 如何使用SQLite数据库为AC#应用程序发布/创建安装程序? - How To Publish/Create Installer For A C# Application With An SQLite Database? 无法从Windows应用程序C#连接到SQL Server数据库 - unable to connect to sql server database from windows application c# C# Windows Form Application With SQL 服务器数据库部署 - C# Windows Form Application With SQL Server database deployment 如何将Windows CE c#应用程序连接到数据库SQL Server2008r2 - How to connect windows CE c# application to database SQL Server2008r2 如何使用C#在Windows窗体应用程序中的SQL Server Compact数据库中搜索? - How to Search in SQL Server Compact Database in windows form application using C#? 如何授予SQL Server 2008数据库从C#Windows应用程序中的客户端系统插入数据的权限? - How to give the permissions to sql server 2008 database to insert the data from client system in c# windows application? 如何在C#Windows应用程序的图片框中从SQL Server数据库中检索多个图像? - How to retrieve multiple images from SQL Server database in picturebox in C# windows application? 如何在 C# 中以编程方式创建 SQL Server 数据库 - 为每个项目创建新 SQL Server 数据库的项目管理应用程序 - How to create SQL Server database programmatically in C# - Project management application that creates a new SQL Server database for each project 如何配置SQL数据库C#Windows窗体应用程序 - How to configure sql database c# windows form application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM