including the installation of mySql in my project - 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!

karfouss
Posts: 1
Joined: Thu Jul 01, 2010 2:41 pm

including the installation of mySql in my project

Hi collegues,
I created a simple java application that uses mySql data base
I used Advanced Installer to create a point off installation of my application
Up to now I have no problem.
But, i have three questions:

How can I include the installation of mySql data base in my project (output project : generated by Advanced Installer)?
How can I start the mySql server from java code (to not need starting it each time I try to use my application)?
Is there any way to hide or encrypt my codes (.class) (not to copy it to the destination station in whitch will be installed my application)

think you for your support
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: including the installation of mySql in my project

Hello,

If your database already exists somewhere, export it to an .sql script which can then be run by your installer. Otherwise write the SQL script yourself.
Our guide explains how to install the sql script:
http://www.advancedinstaller.com/user-g ... l-sql.html

You can start your mysql server by launching the mysql server binary. I'm sure there are java functions that can launch up executables, so fire up the mysql server with the appropriate command line and that should be it.
Is there any way to hide or encrypt my codes (.class) (not to copy it to the destination station in whitch will be installed my application)
You can search the internet for java obfuscation tools, they should provide the necessary encryption.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”