Installing SDK from a Batch File without user Intervention

Is there any way to Install the SDK on a system from a batch file(using the .exe) without asking the user where to install it and to accept the license agreement?

I would like to install the SDK as part of the installation of a bundle of software that I am producing, and I don't want the user to have the option to mess up the process of the bundle installation by changing the location of the install files.

Is there a way to pass command line parameters to the SDK installer so that it will put the files into a specific directory, without asking the user for that location and also without asking them to accept the license agreement?

[658 byte] By [partyman6666] at [2007-9-30 22:57:14]
# 1

Hi,

Why do you need to distribute the JDK along with your application. If you want to

ensure that the code that runs on java at your end would also run on the other

machine then you can distribute the JRE preferably of the same version of JSDK

you are using.

Also it is not advisable that you skip all the selection procedure including

selecting the directory. If you choose some default location it might be a system

drive and out of space.

If you still want to go ahead you can actually bundle the JRE and just copy the

files to a directory without asking the user (preferably within your app directory

structure) and set the necessary environment variables so that the java runtime

environment points to your JRE installation. In case there is already a JRE it

might be overridden by your variable settings.

Hope this helps

Aviroop

aviroop at 2007-7-7 13:31:16 > top of Java-index,Administration Tools,Sun Connection...
# 2

I don't understand exactly what do you want to do....

what you can try is to "make an exe" or a kind of ...

there are some tools for that purpose and distribute everything inside...

http://www.devx.com/Java/Article/21604

But look further there are some more...

Rgds.

Nc

ncktcs at 2007-7-7 13:31:16 > top of Java-index,Administration Tools,Sun Connection...