How to create MySQL Server 5.xx installer? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

carlsus
Posts: 4
Joined: Fri Mar 28, 2008 3:19 pm

How to create MySQL Server 5.xx installer?

Hi i need help on how to create a installer for mysql server.

1. I need to install it on the Program Files folder
2. I need to specify the PORT to be use.
3. Installer must install service as MySQL or other names.
4. Installer must start the service automatically
5. I need to create a DIALOG box to test the MySQL server if it is running.
6. I need to create a user or put password to the "root" user so that it will not be opened by unauthorized users
7. After creating user or configuring password for "root" user then its time to attach/execute the sql script that i have made.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm not sure why you need this because MySQL Server already has a MSI installer. Also, this installer uses custom code and tables, therefore I'm not sure if you can reproduce it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
carlsus
Posts: 4
Joined: Fri Mar 28, 2008 3:19 pm

i want to bundle mysql server on the software that i will build. is there any way how to make installer of mysql server?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to create MySQL Server 5.xx installer?

Hi,
i want to bundle mysql server on the software that i will build.
Please note that you can add MySQL Server as a prerequisite for your package. You can read more about prerequisites here:
http://www.advancedinstaller.com/user-g ... tware.html
Also, in order to run scripts in your main installation you need to add an ODBC driver in the "ODBC" page (this is necessary for connecting to the MySQL server).
http://www.advancedinstaller.com/user-guide/odbc.html
1. I need to install it on the Program Files folder
For this you can add the files in the "Application Folder" directory in the "Files and Folders" page.
http://www.advancedinstaller.com/user-g ... imple.html
2. I need to specify the PORT to be use.
I'm not sure I understand this. Do you need to specify it in the application or do you need to get it from the user?

If you want to get the Port from the user you can use a custom dialog:
http://www.advancedinstaller.com/user-g ... ditor.html
However, if you want to specify it for the application then you can use a custom action. You can read more about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html
3. Installer must install service as MySQL or other names.
Advanced Installer allows you to install Windows native services through the "Services" page:
http://www.advancedinstaller.com/user-g ... vices.html
http://www.advancedinstaller.com/user-g ... rvice.html
4. Installer must start the service automatically
This can be done by using a Control Operation for the service:
http://www.advancedinstaller.com/user-g ... rties.html
5. I need to create a DIALOG box to test the MySQL server if it is running.
For this you can use the Dialog Editor feature in the "Dialogs" page:
http://www.advancedinstaller.com/user-g ... ditor.html
Note that this feature is available only in an Enterprise project.
6. I need to create a user or put password to the "root" user so that it will not be opened by unauthorized users
If you are referring to a MySQL user then this can be done only by using a custom action.
7. After creating user or configuring password for "root" user then its time to attach/execute the sql script that i have made.
You can execute an SQL script by using the "SQL Scripts" page:
http://www.advancedinstaller.com/user-guide/sql.html
http://www.advancedinstaller.com/user-g ... l-sql.html

I'm not sure if you can recreate the installation package for MySQL server, but an easier and recommended solution is to add the existing installer as a prerequisite.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
carlsus
Posts: 4
Joined: Fri Mar 28, 2008 3:19 pm

Re: How to create MySQL Server 5.xx installer?

Thanks for the reply cosmin.. i'll try to test what you have replied..

Return to “Common Problems”