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
FOLLOW US
Get the latest news in Application Packaging