[wpkg-users] Java8...

Marco Gaiarin gaio at sv.lnf.it
Mon Mar 9 17:31:10 CET 2015


I'm working on a java8 recipe, both 64 and 32bit.

I've found some strange things and some workaround, but i prefere to
ask some more info here before put the recipe in production.
I've two recipe, one for java 32bit and one for java 64bit.

I use the .exe installers, so my primary installation command are:

	<install cmd='"%SOFTWARE%\WPKG\jre-8u40-windows-i586.exe" /s WEB_JAVA=0 REBOOT=ReallySuppress' >
                <exit code="3010" reboot="postponed" />
        </install>
	<install cmd='"%SOFTWARE%\WPKG\jre-8u40-windows-x64.exe" /s WEB_JAVA=0 REBOOT=ReallySuppress' >
                <exit code="3010" reboot="postponed" />
        </install>

but for the 32bit, as for java7, i've to mangle with install folders to
circumvent some installer oddieties (when run by user SYSTEM):

        <install architecture='x64' cmd='%COMSPEC% /c if not exist "%SystemRoot%\syswow64\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.8.0_40" md "%SystemRoot%\syswow64\config\systemprofile\AppData\L
        <install architecture='x64' cmd='%COMSPEC% /c if not exist "%SystemRoot%\system32\config\systemprofile\AppData\LocalLow\Sun\Java" md "%SystemRoot%\system32\config\systemprofile\AppData\LocalLow\Sun\
        <install architecture='x64' cmd='%COMSPEC% /c if not exist "%SystemRoot%\system32\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.8.0_40" mklink /J "%SystemRoot%\system32\config\systemprofile\Ap

Then, i've found that 'jqs.exe' desappeared at least from java8 update 40;
anyway i put:
	<install cmd='%COMSPEC% /c if exist "%ProgramFiles32%\Java\jre8\bin\jqs.exe" "%ProgramFiles32%\Java\jre8\bin\jqs.exe" -unregister' >
                <exit code='1' />
        </install>
        <install cmd='%COMSPEC% /c if exist "%ProgramFiles%\Java\jre8\bin\jqs.exe" "%ProgramFiles%\Java\jre8\bin\jqs.exe" -unregister' >
                <exit code='1' />
        </install>

Seems also to me that the Java Update Service get not installed using '/s'
option to exe installer; i've still put:
        <install cmd='msiexec /qn /x {4A03706F-666A-4037-7777-5F2748764D10}' >
                <exit code='any' />
        </install>
        <install architecture='x86' cmd='reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /f /v "SunJavaUpdateSched"'>
                <exit code='any' />
        </install>
        <install architecture='x64' cmd='reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run" /f /v "SunJavaUpdateSched"'>
                <exit code='any' />
        </install>

but is useless; note that JUS is 32bit only.


Lastly, seems to me that Java8 changed the UUID from:

	...Mm0RRFF

to
	...Mm0RRF0

where M=Major m=minor and RR the revision, so from ...17076FF to ...18040F0.


Right? Thanks.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                    http://www.sv.lnf.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
    http://www.lanostrafamiglia.it/25/index.php/component/k2/item/123
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the wpkg-users mailing list