[wpkg-users] Big problem with Java Update
heiko.helmle at horiba.com
heiko.helmle at horiba.com
Mon Oct 22 09:39:39 CEST 2012
Hello Stefan,
>
> The Java installer is a bit tricky and results in problems from time to
> time.
>
Tricky might be not the right word. It's pretty buggy: It doesn't seem to
handle open files.
We have this problem too. If we run the update on any machine that happens
to have SmartSVN or Jenkins installed (which use java, but not necessarily
java.exe), then the installer will happily forget to install lib/rt.jar
(which is kinda important) but continues without an error or reboot
request.
result is a broken JRE install.
workaround is adding extra checks that will trigger a reinstall on the
next wpkg-run -
for 32bit java we use this:
<check type='file' condition='exists'
path='%programfiles%\Java\jre7\lib\rt.jar' architecture='x86'/>
<check type='file' condition='exists'
path='%programfiles(x86)%\Java\jre7\lib\rt.jar' architecture='x64'/>
and because the installer will refuse to install over itself, just trigger
a remove of the (probably broken) JRE just before the actual installation
(as others have already mentioned).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20121022/ad7797c1/attachment-0002.html>
More information about the wpkg-users
mailing list