[wpkg-users] An other problem with Java

Cedric Frayssinet cedric.frayssinet at gmail.com
Wed Oct 9 17:48:10 CEST 2013


Hi all,

I try to update Java on u40, but i can't remove u21 !

I use this package :

*<package
    id="Java"
    name="Java(TM) 7 : ensemble d outils permettant l execution de
programmes Java"
    revision="%version%.1"
    reboot="false"
    priority="178" >

    <variable name="updatever" value="40" />
    <variable name="shortupdatever" value="40" />
    <variable name="version" value="7.0.%updatever%" />
    <variable name="autoupdate" value="0" />
    <variable name="PROGRAMFILES" value="%PROGRAMFILES%"
architecture="x86"/>
    <variable name="PROGRAMFILES" value="%PROGRAMFILES(X86)%"
architecture="x64"/>

    <eoledl dl="http://javadl.sun.com/webapps/download/AutoDL?BundleId=80812"
destname="java/jre-7u%shortupdatever%-windows-i586.exe" />

    <!-- jre 32-bit install for 32-bit and 64-bit hosts -->

    <check type="file" condition="exists"
path="%PROGRAMFILES%\Java\jre7\bin\java.exe" />
    <check type="file" condition="exists"
path="%PROGRAMFILES%\Java\jre7\lib\i386\jvm.cfg" />
    <check type="logical" condition="or">
        <check type="uninstall" condition="exists" path="Java 7 Update
%shortupdatever%" />
        <check type="uninstall" condition="exists" path="Java 7" />
    </check>
<!-- on tue les processus Firefox et InternetExplorer -->

    <install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im
firefox.exe'><exit code='any' /></install>

        <!-- Si Java est mal installe, la mise a jour plante pendant la
desinstallation de la version precedente avec le message "rundll32 :
installer.dl$

    <install cmd='%COMSPEC% /C copy /Y "%SOFTWARE%\java\installer.dll"
"%PROGRAMFILES%\Java\jre7\bin\"'><exit code='any' /></install>


    <!-- desinstall version precedentes de Java 6 -->
        <!-- desinstallation de ma 38 et 39 ({...-2F832160%version%FF}-
ajouter des lignes si necessaire -->
    <install timeout='300' cmd='msiexec /qn /norestart /x
{26A24AE4-039D-4CA4-87B4-2F83216038FF}'><exit code='any' /></install>
    <install timeout='300' cmd='msiexec /qn /norestart /x
{26A24AE4-039D-4CA4-87B4-2F83216039FF}'><exit code='any' /></install>

        <!-- desinstall version precedentes de Java 7 -->

    <install timeout='300' cmd='msiexec /qn /norestart /x
{26A24AE4-039D-4CA4-87B4-2F83217010FF}'><exit code='any' /></install>
    <install timeout='300' cmd='msiexec /qn /norestart /x
{26A24AE4-039D-4CA4-87B4-2F83217011FF}'><exit code='any' /></install>
    <install timeout='300' cmd='msiexec /qn /norestart /x
{26A24AE4-039D-4CA4-87B4-2F83217015FF}'><exit code='any' /></install>
    <install timeout='300' cmd='msiexec /qn /norestart /x
{26A24AE4-039D-4CA4-87B4-2F83217021FF}'><exit code='any' /></install>
<!-- desinstall de la version que l on veut installer -->
        <install timeout='300' cmd='msiexec /qn /x
{26A24AE4-039D-4CA4-87B4-2F832170%updatever%FF}'><exit code='0' /><exit
code='1605' /></install>

    <!-- on installe le .exe sur des postes XP -->
    <install os=".+5\.[1-2]\.\d{4}" timeout="300"
    cmd='%SOFTWARE%\java\jre-7u%shortupdatever%-windows-i586.exe /s
REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=%autoupdate% CUSTOM=1' />

    <!-- on installe le .msi sur des postes 7 -->
    <install os=".+6\.[0-1]\.\d{4}" timeout="300"
    cmd='msiexec /qn /i
%SOFTWARE%\java\jre1.7.0_%updatever%\jre1.7.0_%updatever%.msi
REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=%autoupdate% CUSTO$

    <!-- suppression Java Quick Starter -->
    <install cmd='%COMSPEC% /C if exist
"%PROGRAMFILES%\Java\jre7\bin\jqs.exe"
"%PROGRAMFILES%\Java\jre7\bin\jqs.exe" -unregister'><exit code='any' /></i$

    <!-- suppression Java Auto Update -->
    <install cmd='REG DELETE
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched
/f'><exit code='any' /></install>

    <downgrade include="install" />

    <upgrade include="install" />

    <remove cmd='msiexec /qn /x
{26A24AE4-039D-4CA4-87B4-2F832170%updatever%FF}' />

</package>*


When i check the log, i have these lines

2013-10-09 17:22:27, DEBUG   : Executing command: 'msiexec /qn /norestart
/x {26A24AE4-039D-4CA4-87B4-2F83217021FF}'.
2013-10-09 17:22:38, INFO    : Command 'msiexec /qn /norestart /x
{26A24AE4-039D-4CA4-87B4-2F83217021FF}' returned  exit code [0]. This exit
code indicates success.

So, normally, u21 has to be removed, but it's still installed... and my
upgrade isn't ok :(

I have this problem only on XP 32 bits :/

If you any idea ?

Thanks a lot,

Cedric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20131009/a533eb42/attachment-0002.html>


More information about the wpkg-users mailing list