[英]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.