All: I am facing a problem here, my app is composed by some jar files and some other files, they are all located in one directory. I am planning to implement an auto-update feature. When the app know there is a new version on the server, it will download a zip file to temp directory. After downloading, it will ask customer if he'd like to install it. If yes, my app will exit and I need to unzip the zip file and overwrite all files in the original directory. Now I am wondering:
How can I unzip the file and overwrite the directory? Create a script (which means I need to write bat for Windows and shell for other platforms)? Create a java class to do it?
How can I start this script/ java class after exiting?
Once the job is done, how do I delete the installer? Keep it in temp directory and check it out when new version app start?
From later comments:
I know JWS is a good choice, but for reason "my boss denied", I can't use it.