[wpkg-users] Problem with Java installer

Rainer Meier r.meier at wpkg.org
Mon May 11 10:35:49 CEST 2009


Hi Luca,

luca_manganelli at comune.trento.it wrote:
> I have a problem  with the java official installer.
> With WPKG it installs completely, but at the end it freezes (the java
> installer never exits...).

You might try to execute the update manually - most probably it's displaying an
interactive question which WPKG cannot answer.

There are several ways to silently install the Java package (JRE/JDK). The one I
prefer (of course) is the one I documented here
<http://wpkg.org/Java#Java_6_.28JRE.2FSDK.29.2C_generic_solution>. It's using
the MSI packages included within the installer.


> So I have two options:
> 
>  - the WPKG timeout;
>  - I kill the java installer process
> 
> Do you know this problem?

No. The method I prefer (extract MSI files and use them) worked fine for me up
to now.


> Another question relating to this problem. Is there any method to "execute
> a program with timeout" ?

Yes this option exists. However in your case it might not help much since after
the timeout WPKG will just continue with the next commands but your Java
installer might not have finished its job (and probably never will).

So I suggest to identify the problem why it "hangs" and remove the cause.


If you want to specify a timeout just add the 'timeout=xxx' attribute to the
install/upgrade/remove command definition.
e.g.
<install cmd='"%SOFTWARE%\JavaSE\unattended-jre.cmd"' timeout="180" />

br,
Rainer



More information about the wpkg-users mailing list