[wpkg-users] Issues with publishing Java 8u102 over wpkg
Stefan Pendl
stefan.pendl.71 at gmail.com
Mon Sep 12 19:09:04 CEST 2016
I use the following definition without problem.
<!-- code start (watch for line wraps) -->
<package id="JRE8" name="Java Runtime Environment 8"
revision="%PKG_VER%" reboot="false" priority="10"
precheck-upgrade="always" precheck-install="always"
precheck-remove="always">
<variable name="PKG_VER" value="101" />
<variable name="PKG_SOURCE_X86"
value="%SOFTWARE%\Java\jre-8u%PKG_VER%-windows-i586.exe"/>
<variable name="PKG_SOURCE_X64"
value="%SOFTWARE%\Java\jre-8u%PKG_VER%-windows-x64.exe"/>
<variable name="PKG_INSTALL_SWITCH" value="STATIC=0 REBOOT=0"/>
<variable name="PKG_DEST_32BIT"
value="INSTALLDIR="%ProgramFiles%\Java\jre8""/>
<variable name="PKG_DEST_32BIT"
value="INSTALLDIR="%ProgramFiles(x86)%\Java\jre8""
architecture="x64"/>
<variable name="PKG_DEST_64BIT"
value="INSTALLDIR="%ProgramFiles%\Java\jre8""/>
<check type="uninstall" condition="versiongreaterorequal"
path="Java 8 Update \d+" value="8.0.%PKG_VER%0" />
<check type="uninstall" condition="versiongreaterorequal"
path="Java 8 Update \d+ \(64-bit\)" value="8.0.%PKG_VER%0"
architecture="x64" />
<commands>
<command type="install" include="remove" />
<command type="install" cmd='"%PKG_SOURCE_X86%" /s
%PKG_DEST_32BIT% %PKG_INSTALL_SWITCH% /L %TMP%\JRE8_x86.log' />
<command type="install" cmd='"%PKG_SOURCE_X64%" /s
%PKG_DEST_64BIT% %PKG_INSTALL_SWITCH% /L %TMP%\JRE8_AMD64.log'
architecture="x64" />
<command type="upgrade" include="install" />
<!-- stop quick start service -->
<command type="remove" cmd="%ComSpec% /c net stop
JavaQuickStarterService">
<exit code="2" />
</command>
<command type="remove" cmd="%ComSpec% /c wmic product where
"Name like 'Java 8%'" call Uninstall >%TMP%\JRE8_remove.log
2>%TMP%\JRE8_remove.err" />
</commands>
</package>
<!-- code end -->
In addition I would not install 102, since that is more a developer
release, the general release is 101.
*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?
Am 12.09.2016 um 14:13 schrieb Steve Kersley:
> That's nasty. Well, hopefully my incorrect guess didn't cause anyone any problems - thanks for researching and responding...
>
> This change also breaks our (messy and kludgy) uninstall method, which loops through previous version numbers attempting to uninstall any that are still installed. Should be able to tweak it though to use a different ID for versions >99.
>
> Steve.
>
> -----Original Message-----
> From: Malte Starostik [mailto:wpkg at xodtsoq.de]
> Sent: 12 September 2016 12:37
> To: wpkg-users at lists.wpkg.org
> Cc: Steve Kersley <steve.kersley at keble.ox.ac.uk>; Mendim Uka <Mendim.Uka at esag.ch>
> Subject: Re: [wpkg-users] Issues with publishing Java 8u102 over wpkg
>
> On Monday 12 September 2016 10:28:45 Steve Kersley wrote:
>> Just a guess, but as the SHORTUPDATEVER has rolled over to 3 digits, I
>> assume that the ID generated is wrong. Try removing the zero from in
>> front of the variable:
>>
>> <check type="uninstall" condition="exists"
>> path="{26A24AE4-039D-4CA4-87B4-2F83218%shortupdatever%F0}"
>>
>
> In fact, someone at Oracle was apparently having a rather misanthropic day and went the way of maximum surprise:
>
> {26A24AE4-039D-4CA4-87B4-2F83218092F0} 8.92 32 bit and {26A24AE4-039D-4CA4-87B4-2F86418092F0} 8.92 64 bit turn to {26A24AE4-039D-4CA4-87B4-2F32180102F0} 8.102 32 bit and {26A24AE4-039D-4CA4-87B4-2F64180102F0} 8.102 64 bit
>
> Note how -2F8 in the UUID's last part became just -2F
>
> They did *not* go from 092F0 to 102F0 in the end. Nor 092 to 0A2 to kind of make use of the hexadecimal charset. Nah. Gotta really surprise packagers instead.
>
> Kind regards,
> Malte
> ---------------------------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/wpkg-users
>
More information about the wpkg-users
mailing list