[wpkg-users] jre silent install on seven

Jean-Jacques Moulis jj at isy.liu.se
Wed Dec 16 17:05:32 CET 2009


On Wed, 16 Dec 2009 14:59:53 +0100 Fabrice Flore-Thebault <themroc at centsix.org> wrote:


FFT> Beginning a Windows Installer transaction: C:
FFT> \Windows\system32\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.6.0_17\jre1.6.0_17.msi. 
FFT> Client Process Id: 2536.
FFT> Ending a Windows Installer transaction: C:
FFT> \Windows\system32\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.6.0_17\jre1.6.0_17.msi. 
FFT> Client Process Id: 2536.
FFT> Could not process (install) package 'Java Runtime Environment 6 Update 17' 
FFT> (java6):
FFT> Exit code returned non-successful value (1619) on command 
FFT> '%SOFTWARE%\jre\jre-6u17-windows-i586-s.exe /s IEXPLORER=1 MOZILLA=1 
FFT> ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0'.


I guess the problem come from the fact that jre-6u17-windows-i586-s.exe is a 32bit app.
It  obviously unpacks in in \Windows\system32\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.6.0_17\
if a 64bits msiexec is started by the exe then it can't find jre1.6.0_17.msi as it is not there.
System32 when in 64bits mode is not the same system32 you got in 32bits mode

Copy the content of \Windows\SysWOW64\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.6.0_17
on your server and install from it
(SysWoW64 is system32 for 32 bits mode, logical isn't it! )

since a long time I use the msi directly and have no problems with seven 64bits.
(not with this anyway :-)


This work for me on seven 64bits:

<package id="jre" name="Java(TM) 6 Update 17" revision="7" reboot="false" priority="178">
<check type="logical" condition="or">
	<check type="uninstall" condition="exists" path="Java(TM) 6 Update 17" />
	<check type="registry" condition="equals" path="HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F83216017FF}\DisplayName" value="Java(TM) 6 Update 17" />
	<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES(x86)%\Java\jre6\bin\java.exe" value="6.0.170.4" />
</check>
	<install cmd="%WpkgRoot%\Tools\pskill.exe jqs.exe"><exit code="0" /><exit code="-1" /></install>
	<install cmd='msiexec /qb! /i %WpkgRoot%\Packages\Java\jre1.6.0_17\jre1.6.0_17.msi ADDLOCAL=ALL REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 CUSTOM=1' />
	<install cmd='%WpkgRoot%\Packages\Java\Fix_Java.cmd'><exit code="0" /><exit code="1" /></install>
	<upgrade cmd="%WpkgRoot%\Tools\pskill.exe jqs.exe"><exit code="0" /><exit code="-1" /></upgrade>
	<upgrade cmd='msiexec /qb! /i %WpkgRoot%\Packages\Java\jre1.6.0_17\jre1.6.0_17.msi ADDLOCAL=ALL REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 CUSTOM=1' />
	<upgrade cmd='%WpkgRoot%\Packages\Java\Fix_Java.cmd'><exit code="0" /><exit code="1" /></upgrade>
	<remove cmd='MsiExec.exe /qb! /x {26A24AE4-039D-4CA4-87B4-2F83216015FF}' />
</package>
	
<package id="x64-jre" name="Java(TM) 6 Update 17" revision="7" reboot="false" priority="178">
	<check type="uninstall" condition="exists" path="Java(TM) 6 Update 17 (64-bit)" />
	<install cmd='msiexec /qb! /i %WpkgRoot%\Packages\Java\jre1.6.0_17_x64\jre1.6.0_17.msi ADDLOCAL=ALL REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 CUSTOM=1' />
	<upgrade cmd='msiexec /qb! /i %WpkgRoot%\Packages\Java\jre1.6.0_17_x64\jre1.6.0_17.msi ADDLOCAL=ALL REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 CUSTOM=1' />
	<remove cmd='MsiExec.exe /qb! /x {26A24AE4-039D-4CA4-87B4-2F83216015FF}' />
</package>






-- 
Jean-Jacques   Moulis                              Tel:  (013) 281684
ISY                                                Fax:  (013) 139282
Linköping University                            E-mail: jj at isy.liu.se
581 83 Linköping



More information about the wpkg-users mailing list