<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma",sans-serif;
        mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Segoe UI",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
p.Sprechblasentext, li.Sprechblasentext, div.Sprechblasentext
        {mso-style-name:Sprechblasentext;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma",sans-serif;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">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:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><check type="uninstall" condition="exists" path="{26A24AE4-039D-4CA4-87B4-2F83218%shortupdatever%F0}"</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">For consistency, maybe also pad out PREVSHORTUPDATEVER with a leading zero, same with other uses of 2 digit numbers – although that complicates things as looks as though it needs to be checked without a leading
 zero in the uninstall string, but used as a 3 figure value with leading zero in the uninstall string.  Not sure if there’s a simple way to do that without having to have multiple variables with and without leading zeroes.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">That’s just a guess though based on it moving from 2 to 3 digit version number.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">PS: I really dislike the ‘PREVIOUSVERSION’ variable way of removing the old package – in our environment it’s quite common for some PCs to be off/away for several months – using this model if they miss an update,
 the next update then doesn’t remove the previous previous version as the script only tells it to remove the previous version which was never installed.  With Java, that can be a security concern as the JRE doesn’t appear to remove old versions itself, and
 malicious code in a browser can request older versions of the Java plugin.  Basically, Java versioning is a mess, nothing to do with wpkg
</span><span style="font-family:Wingdings;color:#1F497D">J</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> wpkg-users [mailto:wpkg-users-bounces@lists.wpkg.org]
<b>On Behalf Of </b>Mendim Uka<br>
<b>Sent:</b> 12 September 2016 10:34<br>
<b>To:</b> wpkg-users@lists.wpkg.org<br>
<b>Subject:</b> [wpkg-users] Issues with publishing Java 8u102 over wpkg<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="DE-CH">Dear WPKG Team </span><span lang="DE-CH" style="font-family:Wingdings">J</span><span lang="DE-CH"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Ive actually got a problem with publishing the java versuib 8u102.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Actually installed version is: 8u65 which worked perfectly publishing over wpkg.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Now I want to update to 8u102 but it doesn’t work using the same script (adjusted to the version 102)<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US">Used Installer Application</span></b><span lang="EN-US">: jre-8u102-x64.exe (Java Platform SE binary), and jre-8u102-i586.exe (Java Platform SE binary),<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">Package Script:<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><?xml version="1.0" encoding="UTF-8"?><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><packages><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><package<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    id="java10"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    name="Java Runtime Environment 8"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    revision="%version%"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    reboot="false"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    <variable name="updatever" value="08" /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    <variable name="shortupdatever" value="102" /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    <variable name="prevshortupdatever" value="65" /> <!--Previous Version--><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    <variable name="version" value="8.0.%shortupdatever%" /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    <check type="logical" condition="or"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">        <check type="uninstall" condition="exists" path="Java 8" /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">        <check type="uninstall" condition="exists" path="Java 8 Update %shortupdatever%" /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">                        <check type="uninstall" condition="exists" path="{26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever%F0}" />               
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">   
</span><span lang="DE-CH" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"></check><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    <install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">       
</span><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><exit code='any' /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    </install><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">           
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    <install cmd='msiexec /i %SOFTWARE%\Java\jre1.8.0_%shortupdatever%.msi JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1
 /q' >        <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">        <exit code='any' /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    </install><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">           
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">            <upgrade cmd='msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%prevshortupdatever%F0}' /> <!--Remove previous Version--><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">           
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">            <remove cmd='msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever%F0}' /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"> <!-- Remove Java Quick Starter --><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">            <install cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre1.8.0_%shortupdatever%\bin\jqs.exe" "%PROGRAMFILES%\Java\jre1.8.0_%shortupdatever\bin\jqs.exe"
 -unregister'><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">        <exit code='any' /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    </install><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">           
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    <install cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\Java\jre1.8.0_%shortupdatever%\bin\jqs.exe" "%PROGRAMFILES(x86)%\Java\jre1.8.0_%shortupdatever\bin\jqs.exe"
 -unregister'><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">        <exit code='any' /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    </install><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"> <!-- Remove Java Auto Update --><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">            <install cmd='REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f'><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">        <exit code='any' /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    </install><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    <downgrade include="install" /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    <upgrade architecture="x64" cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%prevshortupdatever%F0}' /> <!--Remove previous
 Version--><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    <upgrade include="install" /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH">    <remove architecture="x64" cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%shortupdatever%F0}' /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"></package><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"></packages><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If you have any ideas please send me an email.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks a lot </span><span lang="EN-US" style="font-family:Wingdings">J</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;mso-fareast-language:DE-CH">Best Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;mso-fareast-language:DE-CH">Mendim<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Century Gothic",sans-serif;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<div style="border:none;border-bottom:solid windowtext 1.5pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal"><span lang="DE-CH" style="mso-fareast-language:DE-CH"><img width="293" height="107" style="width:3.0471in;height:1.1132in" id="Grafik_x0020_1" src="cid:image002.jpg@01D20CE7.CF491E60"></span><span lang="FR-CH" style="font-size:14.0pt;font-family:"Century Gothic",sans-serif;color:#00B050;mso-fareast-language:DE-CH"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="FR-CH" style="font-size:14.0pt;font-family:"Century Gothic",sans-serif;color:#00B050;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH" style="font-size:14.0pt;font-family:"Century Gothic",sans-serif;color:#00B050;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH"><o:p> </o:p></span></p>
</div>
</body>
</html>