Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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.
Posted
Updated 11-Jan-17 3:36am
v3
Comments
ZurdoDev 11-Jan-17 7:06am    
The .exe already exists because that is what a windows form app compiles to when you run it. You want to create a setup file. You can do that with third party tools or using the Setup project within Visual Studio. Just google online and you'll get lots of examples.

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900