Mendim Uka
2016-09-12 09:34:28 UTC
Dear WPKG Team :)
Ive actually got a problem with publishing the java versuib 8u102.
Actually installed version is: 8u65 which worked perfectly publishing over wpkg.
Now I want to update to 8u102 but it doesn't work using the same script (adjusted to the version 102)
Used Installer Application: jre-8u102-x64.exe (Java Platform SE binary), and jre-8u102-i586.exe (Java Platform SE binary),
Package Script:
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="java10"
name="Java Runtime Environment 8"
revision="%version%"
reboot="false">
<variable name="updatever" value="08" />
<variable name="shortupdatever" value="102" />
<variable name="prevshortupdatever" value="65" /> <!--Previous Version-->
<variable name="version" value="8.0.%shortupdatever%" />
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java 8" />
<check type="uninstall" condition="exists" path="Java 8 Update %shortupdatever%" />
<check type="uninstall" condition="exists" path="{26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever%F0}" />
</check>
<install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'>
<exit code='any' />
</install>
<install cmd='msiexec /i %SOFTWARE%\Java\jre1.8.0_%shortupdatever%.msi JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1 /q' >
<exit code='any' />
</install>
<upgrade cmd='msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%prevshortupdatever%F0}' /> <!--Remove previous Version-->
<remove cmd='msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever%F0}' />
<!-- Remove Java Quick Starter -->
<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'>
<exit code='any' />
</install>
<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'>
<exit code='any' />
</install>
<!-- Remove Java Auto Update -->
<install cmd='REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f'>
<exit code='any' />
</install>
<downgrade include="install" />
<upgrade architecture="x64" cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%prevshortupdatever%F0}' /> <!--Remove previous Version-->
<upgrade include="install" />
<remove architecture="x64" cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%shortupdatever%F0}' />
</package>
</packages>
If you have any ideas please send me an email.
Thanks a lot :)
Best Regards
Mendim
[cid:***@01D20CE6.CF5D1100]
Ive actually got a problem with publishing the java versuib 8u102.
Actually installed version is: 8u65 which worked perfectly publishing over wpkg.
Now I want to update to 8u102 but it doesn't work using the same script (adjusted to the version 102)
Used Installer Application: jre-8u102-x64.exe (Java Platform SE binary), and jre-8u102-i586.exe (Java Platform SE binary),
Package Script:
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="java10"
name="Java Runtime Environment 8"
revision="%version%"
reboot="false">
<variable name="updatever" value="08" />
<variable name="shortupdatever" value="102" />
<variable name="prevshortupdatever" value="65" /> <!--Previous Version-->
<variable name="version" value="8.0.%shortupdatever%" />
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java 8" />
<check type="uninstall" condition="exists" path="Java 8 Update %shortupdatever%" />
<check type="uninstall" condition="exists" path="{26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever%F0}" />
</check>
<install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'>
<exit code='any' />
</install>
<install cmd='msiexec /i %SOFTWARE%\Java\jre1.8.0_%shortupdatever%.msi JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1 /q' >
<exit code='any' />
</install>
<upgrade cmd='msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%prevshortupdatever%F0}' /> <!--Remove previous Version-->
<remove cmd='msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever%F0}' />
<!-- Remove Java Quick Starter -->
<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'>
<exit code='any' />
</install>
<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'>
<exit code='any' />
</install>
<!-- Remove Java Auto Update -->
<install cmd='REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f'>
<exit code='any' />
</install>
<downgrade include="install" />
<upgrade architecture="x64" cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%prevshortupdatever%F0}' /> <!--Remove previous Version-->
<upgrade include="install" />
<remove architecture="x64" cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%shortupdatever%F0}' />
</package>
</packages>
If you have any ideas please send me an email.
Thanks a lot :)
Best Regards
Mendim
[cid:***@01D20CE6.CF5D1100]