[wpkg-users] Again, issues with java latest update 7u51

Cedric Frayssinet cedric.frayssinet at gmail.com
Mon Jan 20 10:28:30 CET 2014


Hi Carlos,

In my package, i add this line :

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


Maybe you can try this !

Cedric




2014/1/17 Carlos Gomes - STI Unesp Franca <cgomes at franca.unesp.br>

> Hello everyone!
>
> As you may have already got this week, sun released a new java version,
> update 51 from the java7 app. Our local ambient here uses a lot of apps
> that needs java, and mostly of them immediatly after a java update release
> starts up to claim browser imcompatibility, java outdated and so on.. So
> the deployment must be quite fast.
>
> We have a working script to install java 32 and 64bits, but on the latest
> update I claimed to an error, googling it repeats the same issue with 7u21,
> on the uninstall register for the java installation, locking up some
> machines with the error image attached, with a double \\ on the uninstall
> path.
>
> [image: Imagem inline 1]
>
> My script is as follows, is there any way to troubleshoot this under the
> install instructions to remove this double slash issue?
> thanks in advance.
>
> <!-- jre install with the msi ; for 32-bit and 64-bit hosts -->
>>
>>     <package
>>
>>         id="java"
>>
>>         name="Java(TM) 7"
>>
>>         revision="%version%"
>>
>>         reboot="false"
>>
>>         priority="178"
>>
>>         >
>>
>>         <variable name="updatever" value="51" />
>>
>>         <variable name="shortupdatever" value="7" />
>>
>>         <variable name="version" value="7.0.%updatever%" />
>>
>>         <variable name="autoupdate" value="0" />
>>
>>         <variable name="PKG_SOURCE"
>> value="\\200.145.119.80\WPKG\basicos\java" />
>>
>>
>>
>>         <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>
>>
>>         <!-- .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
>> %PKG_SOURCE%\jre1.7.0_%updatever%\jre1.7.0_%updatever%.msi REBOOT=Suppress
>> JAVAUPDATE=%autoupdate% CUSTOM=1' />
>>
>>         <!-- 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
>> %PKG_SOURCE%\jre1.7.0_%updatever%_x64\jre1.7.0_%updatever%.msi
>> REBOOT=Suppress JAVAUPDATE=%autoupdate% CUSTOM=1'
>>
>>         />
>>
>>         <!-- 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>
>>
> --
> []'s
> ---------------------------------
> Carlos Gomes
> Assistente de Informática II - STI
> skype: cgomes.unesp
> 55(16)3706-8783
> UNESP/Franca - FCHS
>
> -------------------------------------------------------------------------
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20140120/3e39d4ed/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: java.png
Type: image/png
Size: 17673 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20140120/3e39d4ed/attachment-0003.png>


More information about the wpkg-users mailing list