This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Dear Ranchers, I have done a project in Swings and MySQL. I want to burn the product in a CD-ROM and want to give it my client. My client's requirement is to automate the installation of the Application on a single click.
I planned to burn the CD in such a way + CD-ROM + JRE + APPLICATION - Application developed in Java Swings (*.jar) - MySQL Database (db.sql) + MYSQL - Setup.exe
When the client press the setup.exe it has to 1. Install the JRE 2. Set the Path for the bin directory 3. Install the MySQL Database and also setup the Service and put the password for the root as root 4. Restore the Database. 5. Copy the Application (*.jar) into a particular location in the computer 6. Create a Short-cut in the desktop .
I would like to do my application in this format. Is that possible for me to do so. If yes, How and I would like to get your enriched ideas and suggestions.
I see several problems, most notably the assumption that setup.exe is going to be able to run, and even if it runs, that it'll be able to install Mysql.
The former limits you to the Windows operating system, and probably to those of your users who have admin rights on their machines (which in corporate settings many do not).
The latter is questionable. Do your users really want and need a full-blown database on their machines, assuming they're able to install it? Since this is apparently a single-user application, you could avoid many troubles by using an embedded Java database like Derby, which doesn't need an installation.
This question really doesn't have much relevance to Swing.
If you are only targeting Windows systems, then the most straightforward way to do what you want would be to produce a standard Windows MSI install package. It can do all the things you describe there.
Joined: Dec 28, 2005
Dear Ranchers, Thankyou so much for your help. Can you please specify a package where i can customize my MSI install package.