如何制作.exe文件 [英] How to make .exe file

查看:98
本文介绍了如何制作.exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我使用C#使用Windows窗体应用程序创建表单并使用MYSQL数据库连接它们



现在我想构建这个并创建.exe文件(安装文件),我可以将其复制到DVD上并安装在其他笔记本电脑上。



(即我正在使用visual studio,我正在使用表单应用程序。我将我的应用程序表单连接到我的笔记本电脑上安装的数据库服务器。我完成了我的项目当我在VS2010中运行它时,它工作正常。现在我想将此项目设置为.exe文件。所以我想得到它并将其安装在另一台笔记本电脑上并使用它而无需在客户端笔记本电脑中安装数据库服务器。)< br $> b $ b

我尝试过:



没什么。

Hello,

I created forms using windows form application using C# and connect them forms with MYSQL database

Now i want to build this and create .exe file ( setup file) that i can copy it on DVD and install it on other laptop.

(i.e I'm using visual studio and i using form application. I connected my app. form with my database server that installed on my laptop.I completed my project and it's working fine when i run it in VS2010. Now i want to set this project as .exe file. so i want to get it and install it on another laptop and using it without install the database server in the client laptop. )

What I have tried:

Nothing.

推荐答案

这很难回答......

问题是MySQL是一个基于服务器的数据库系统,所以除非你的客户端可以访问MySQL的一个实例运行你的应用程序可以创建一个数据库,你的应用程序将无法工作,除非MySQL安装在他的PC或他本地的一个本地,否则不能。

MySQL和SQL Server用于多用户访问数据库并要求安装(相当重的脚本)应用程序e您的应用程序可以使用它们访问它们支持的数据库。如果你没有它,你的应用程序将无法工作。

我认真不建议你开始让普通用户在他们的机器上安装MySQL或SQL Server! />


如果您不需要多用户访问数据库,那么将您的应用程序转换为使用单个用户数据库系统(如SQLite或Access)应该非常简单 - 将仅与您的应用程序一起安装的DLL程序集一起使用,并且不需要任何单独的应用程序安装。
That's difficult to answer...
The problem is that MySQL is a server based database system, so unless your client has access to an instance of MySQL running that your app can create a database on, your application will not work, and cannot unless MySQL is installed on his PC or one local to him.
MySQL and SQL Server are intended for multiuser access to the database and require a (fairly heavy footprint) application to be installed before they can be used by your application to access the database they support. If you don't have it, your app can't work.
And I seriously don't recommend you start getting "normal users" to install either MySQL or SQL Server on their machines!

If you don't need multiuser access to the DB, then it should be pretty simple to convert your app to use a single user DB system such as SQLite or Access - which will work with just DLL assemblies installed with your app, and don't require any separate application installation.


这篇关于如何制作.exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆