[wpkg-users] An other problem with Java

Carlos Gomes - STI Unesp Franca cgomes at franca.unesp.br
Sat Oct 19 00:58:09 CEST 2013


Anyone having problens with java 7.45?

I have observerd some different behavior here on our park, we have windows
vista 32 and 7 32 and 64 machines.
some vista machines after the deployment I can see java on the installed
program list, but they didnt manage to activate the plugins for the
browsers, dont even appear on the plugins / complements lists, besides
being shown on the system.

Installing the msi on a local machine it works fine, maybe im missing
something on the code.


ill paste the code on the email itself, if you rather use pastebins please
tell me :)

this is the code on my packages.xml

<!-- jre install with the msi ; for 32-bit and 64-bit hosts -->
    <package
        id="java7"
        name="Java(TM) 7"
        revision="%version%"
        reboot="false"
        priority="178"
        >

        <!-- Local onde ficam armazenados os arquivos MSI:
C:\Users\XXXXXXXXX\AppData\LocalLow\Sun\Java -->

        <variable name="updatever" value="45" />
        <variable name="shortupdatever" value="45" />
        <variable name="version" value="7.0.%updatever%" />
        <variable name="autoupdate" value="0" />

        <check architecture="x86" type="file" condition="exists"
path="%PROGRAMFILES%\Java\jre7\bin\java.exe" />

        <check architecture="x64" type="file" condition="exists"
path="%PROGRAMFILES(X86)%\Java\jre7\bin\java.exe" />

        <check type="logical" condition="or">
            <check type="uninstall" condition="exists" path="Java 7" />
            <check type="uninstall" condition="exists" path="Java 7 Update
%updatever%" />
            <check type="uninstall" condition="exists" path="Java 7 Update
%shortupdatever%" />
        </check>

        <install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im
firefox.exe'>
          <exit code='any' />
        </install>
        <!-- .exe install (XP, 2003) -->
        <install os=".+5\.[1-2]\.\d{4}"

cmd='\\11.11.11.11\WPKG\basicos\java\jre-7u%shortupdatever%-windows-i586.exe
/s' />
        <!-- .msi (Seven) install
http://wpkg.org/Java#Install_JRE_with_msi_without_removing_old_version_in_a_mixed_32-bit.2F64-bit_environment-->
        <install os=".+6\.[0-1]\.\d{4}"
        cmd='msiexec /qn /i
\\11.11.11.11\WPKG\basicos\java\jre1.7.0_%updatever%\jre1.7.0_%updatever%.msi'
/>

        <!-- remove 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' />
        </install>
        <install cmd='%COMSPEC% /C if exist
"%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe"
"%PROGRAMFILES(x86)%\Java\jre7\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 include="install" />

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

        <!-- jre 64-bit install with the msi ; for 64-bit hosts only -->
        <check architecture="x64" type="file" condition="exists"
path="%PROGRAMFILES%\Java\jre7\bin\java.exe" />
        <check architecture="x64" type="logical" condition="or">
            <check type="uninstall" condition="exists" path="Java 7
(64-bit)" />
            <check type="uninstall" condition="exists" path="Java 7 Update
%updatever% (64-bit)" />
            <check type="uninstall" condition="exists" path="Java 7 Update
%shortupdatever% (64-bit)" />
        </check>

        <install architecture="x64" cmd='taskkill /f /im jqs.exe /im
iexplore.exe /im firefox.exe'>
            <exit code='any' />
        </install>
        <install architecture="x64"
            cmd='msiexec /qn /i
\\11.11.11.11\WPKG\basicos\java\jre1.7.0_%updatever%_x64\jre1.7.0_%updatever%_x64.msi'
        />
        <!-- remove Java Quick Starter -->
        <!--<install architecture="x64" cmd='%COMSPEC% /C if exist
"%PROGRAMFILES%\Java\jre7\bin\jqs.exe"
"%PROGRAMFILES%\Java\jre7\bin\jqs.exe" -unregister'>
          <exit code='any' />
        </install>
        <install architecture="x64" cmd='%COMSPEC% /C if exist
"%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe"
"%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe" -unregister'>
          <exit code='any' />
        </install>-->

        <downgrade include="install" />

        <upgrade include="install" />

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

    </package>






2013/10/10 Cedric Frayssinet <cedric.frayssinet at gmail.com>

> Thanks Stefan, finally, it was my fault (same name between u40 and u21),
> no problem with upgrade, yees :)
>
> Cedric
>
>
> 2013/10/9 Stefan Pendl <stefan.pendl.71 at gmail.com>
>
>> Am 09.10.2013 17:48, schrieb Cedric Frayssinet:
>>
>>  Hi all,
>>>
>>> I try to update Java on u40, but i can't remove u21 !
>>>
>>
>> --snip
>>
>>
>>  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 ?
>>>
>>>
>>>
>> Removing the previous version is not necessary, since it will be
>> overwritten by the new one.
>> In addition I have stopped removing the old version due to many ways of
>> this to fail.
>>
>>
>> --
>> 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?
>>
>> ------------------------------**------------------------------**
>> -------------
>> Hotel discounts, best prices: http://www.booking.com/index.**
>> html?aid=366545 <http://www.booking.com/index.html?aid=366545>
>> ------------------------------**------------------------------**
>> -------------
>> wpkg-users mailing list archives >> http://lists.wpkg.org/**
>> pipermail/wpkg-users/ <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<http://lists.wpkg.org/mailman/listinfo/wpkg-users>
>>
>
>
> -------------------------------------------------------------------------
> Hotel discounts, best prices: http://www.booking.com/index.html?aid=366545
> -------------------------------------------------------------------------
> 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
>
>


-- 
[]'s
---------------------------------
Carlos Gomes
Assistente de Informática II - STI
skype: cgomes.unesp
55(16)3706-8783
UNESP/Franca - FCHS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20131018/dc74c5b9/attachment-0003.html>


More information about the wpkg-users mailing list