[wpkg-users] My java-7 package keeps reinstalling itself
Frederic Bergeron
FBergeron at rocketmail.com
Wed Nov 26 01:20:32 CET 2014
From: Stefan Pendl <stefan.pendl.71 at gmail.com>
To: wpkg-users at lists.wpkg.org
Sent: Tuesday, November 25, 2014 6:19 AM
Subject: Re: [wpkg-users] My java-7 package keeps reinstalling itself
Am 24.11.2014 um 14:51 schrieb Frederic Bergeron:
Hi again,
In the java_x86.log file, I could see that the 1603 error was caused because the java was already installed. So I added an exitCode='1603' and it fixed the problem. There was also another similar problem with another install command. I added the appropriate exitCode and it seems to work fine now. I didn't know the /L option. That was very helpful.
Concerning FlashPlayer, I removed the file tests and it works fine now.
Thanks a lot for your help.
I would not add the exit code 1603 as being successful, since it can have many reasons.
I would change the package to always check if there is already the same or a higher version installed.
<package id="JRE8"
name="Java Runtime Environment 8"
revision="%JRE_VER%"
reboot="false"
priority="10"
precheck-upgrade="always">
The attribute "precheck-upgrade" will force WPKG to run the checks before the package is upgraded, so you avoid problems with packages that don't upgrade if the same version is already installed.
--
Stefan P.
Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
-------------------------------------------------------------------------
SSLrack - get your cheap cheap SSL certificates (standard, wildcard, EV)
http://www.sslrack.com/
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users
Hi again Stefan,
I didn't know about precheck-upgrade. That's very convenient. I removed the exit code elements and added the precheck-upgrade and it works very well.
Big thanks for your help.
Frederic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20141126/5aa52ba5/attachment-0003.html>
More information about the wpkg-users
mailing list