[wpkg-users] Java 32 exe in 64 bit environment.

Marco Gaiarin gaio at sv.lnf.it
Wed Jun 26 18:02:54 CEST 2013


Googling around, i've found a solution to the 'java7 32bit exe installer
in a 64 bit environment' that not only works, but also explain very
well the culprit.

	http://harryjohnston.wordpress.com/2011/02/20/installing-32-bit-software-as-system-in-windows-7-x64/

i post here because, as author said, coud be a source of trouble for
other installers.

For current jre7, it was sufficient to add:

	<install architecture='x64' cmd='%COMSPEC% /c if not exist "%SystemRoot%\syswow64\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.7.0_25" md "%SystemRoot%\syswow64\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.7.0_25"' />
        <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\Java"' />
        <install architecture='x64' cmd='%COMSPEC% /c mklink /J "%SystemRoot%\system32\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.7.0_25" "%SystemRoot%\syswow64\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.7.0_25"' />
        <install cmd='"%SOFTWARE%\WPKG\jre-7u25-windows-i586.exe" /s WEB_JAVA=0 REBOOT=ReallySuppress' >

and if someone can explain me, it was needed to add a '%COMSPEC% /c' in
front of the mklink call, without does not work as expected...

-- 
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/chi_siamo/5xmille.php
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)


More information about the wpkg-users mailing list