Add MySQL Connector to the install package

2

I have a Windows Forms that connects to a remote MySQL database (it's on a server). Basically, all it does is read data from a table, neither write nor anything. I'm using the Entity Framework and my project has the following dependencies for Mysql : MySql.Data , MySql.Data.Entity. EF6 .

Well, so far so perfect! The application is ready and working properly. The problem is this, every time I take the application to a new client, I have to install the MysqlConnector on hand before installing my system, download link .

Is there no way to include this blessed as a prerequisite in my installer? When generating the install, does it automatically go with the project?

    
asked by anonymous 14.09.2017 / 15:45

1 answer

1

Hello, I had this problem that of having to install program manually, but I found this installer with Visual Studio, with it you could put the dependency of programs and can put to install before the application, I'll put a link that explains the right procedure, has several functions that can help a lot.

I'll put Footsteps: You will download the Installer Projects program from Visual Studio, you have either the Nuget within the visual or you can find it on the Microsoft website. Will add a new project already in what you have created. In ADD > New Projetc > Other Project Type > Visual Studio Installer > Select "Setup Project". It will create a folder underneath your solution, just right click and add your directory, after that you will put the dependencies, and select the own Mysql exe, or you can put it for download from the vendor site. After this all is only compile, a Setup will be generated, and an .msi, just take this to the clients and the program does the rest of the installation alone. For better detailing you can look at the link, there are other functions like adding shortcuts, records and everything else, it's very easy and functional

Link:

    
14.09.2017 / 15:52