jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes Installation of a Swing Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Installation of a Swing Application" Watch "Installation of a Swing Application" New topic

Installation of a Swing Application

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 265
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
- Application developed in Java Swings (*.jar)
- MySQL Database (db.sql)
- 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.

Pleaes help..

Kind Regards

Aravind Prasad
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
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.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

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.
Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 265
Dear Ranchers,
Thankyou so much for your help. Can you please specify a package where i can customize my MSI install package.


Aravind Prasad
Rob Spoor

Joined: Oct 27, 2005
Posts: 20279

You could try Inno Setup.

How To Ask Questions How To Answer Questions
I agree. Here's the link: http://aspose.com/file-tools
subject: Installation of a Swing Application
It's not a secret anymore!