SQE approves critical request.
Critical Request Template:
- Justification : 32 bit JRE8 and JDK8 doesn't install on any 64 bit Windows under system account.
- Risk Analysis : no risk
- Webrev : https://java.se.oracle.com/code/cru/CR-JDK8UDEV-123
- Testing (done/to-be-done) : Verify following installation scenarios:
off-line jre under both system and admin account
on-line jre under both system and admin account
off line jdk under both system and admin account
- Back ports (done/to-be-done) : N/A
- FX Impact : N/A
Moving out the due date - the work to fix this is proceeding, but getting through the code-review will take us past Monday.
111414 - moving to 8u40, available shortly after 8u31 (previous target) - less risk to 8u
Moved due date to 17-Nov-14.
Please aim to have the fixes ready by 07:00 AM/US/Pacific on the 17th.
LocalAppDataLow does not exist on a fresh installation of Windows Server 2008.
Try to get LocalAppData location instead and then create LocalAppDataLow
in the same location.
Windows doesn't map System32->Syswow64 for location of *.msi files being passed to
For 32bit applications running under 64 bit Windows all attempts to access System32 directory
should be mapped by WOW64 (Windows 32 On Windows 64) emulator to Syswow64 directory.
For some reason System32->Syswow64 conversion/mapping doesn't take place for msiexec.exe
(neither for 32bit version Syswow64/msiexec.exe nor for 64 bit version System32/msiexec.exe).
Detect location of msiexec.exe by checking following registry:
If the location contains "Syswow64" then it means that
Java installer wrapper is a 32 bit application running under 64 bit Windows
so replace "System32" string with "Syswow64" string in a path to *.msi files
being passed to msiexec.exe
FVB is available here:
Above directory contains jre-6u25*.exe installer bundle:
and the same bundle wrapped with IDR package:
There are still two issues to be solved:
- OpenOffice.jpg banner error message appearing during installation under system account
- No Java Update Tab in Java Control Panel if installation done under system account
On 64 bit operating Windows system (including Windows Server 2008)
JRE installer wrapper
which is a 32 bit application running under system account
attempts to create *.msi and *.cab files in
which is being mapped by WOW64 (emulation of Windows32 On Windows64) to
AS a next step the wrapper calls:
"C:\Windows\SysWOW64\\msiexec.exe" /i "C:\Windows\system32\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.6.0_25\jre1.6.0_25.msi"
Looks like msiexec.exe runs as a64 bit application so it doesn't translate
C:\Windows\system32 into C:\Windows\syswow64 and as a result looks for *.msi file in
in a wrong location.
A Path to msi files is generated by wrapper with
void GetSingleMSIFileNames(LPTSTR lpszLocalFileName, BOOL b64bit) function located in
Moreover on a fresh installation of Windows Server 2008
LocalLow directory doesn't exist in
which is causing
BOOL ExtractFileFromResource(HINSTANCE hInst, LPCTSTR lpName, LPCTSTR lpType, LPCTSTR lpszFile)
msi package doesn't get created by 32bit JRE installer wrapper (jre*.exe)
running under system account on 64bit Windows Server 2008.
Further investigation in progress.
Looks like Windows problem with accessing
C:\Windows\System32\config or C:\Windows\syswow64\config
Java installer wrapper jre*.exe at the beginning creates *.msi package and then installs that package using msiexec.exe.
If 32 bit or 64 bit jre*.exe is launched under admin account it creates *.msi package in
If 64bit jre*.exe is launched under system account it creates *.msi package in
If 32bit jre*.exe is launched under system account it hangs before it creates *.msi package.
Workaround procedure (to force 64 bit Windows to install 32bit JRE under system account):
create *.msi package by running on any machine (for example for jre6u23):
When it opens "Java Setup - welcome" window just press Cancel button
C:\Users\<user_name>\AppData\LocalLow\Sun\Java\jre1.6.0_23 (on Server 2008)
C:\Documents and Settings\<user_name>\Application Data\Sun\Java\jre1.6.0_23 (on Windows XP)
jre1.6.0_23.msi and Data1.cab
Copy these files to a temporary directory on a machine on which you want to install JRE (for example C:\aaa).
Let's assume PsExec is in C:\PsTools.
Run installation like below:
C:\PsTools>PsExec.exe -s msiexec.exe /i c:\aaa\jre1.6.0_23.msi /qn INSTALLDIR=c:\java.dir /L c:\java.log
It should create a following output:
PsExec v1.98 - Execute processes remotely
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - www.sysinternals.com
msiexec.exe exited with error code 0.
/qn is a last parameter for msiexec.exe.
All subsequent parameters are for Java installer.
Do not specify /s parameter for jre installer when /qn parameter is specified for msiexec.exe.
/qn and /s mean the same (installation without User Interface) and can't be specified together.
Running 64bit installer (jre*-x64.exe) solves the problem for now and could be considered as a temporary workaround.
Fiducia IT workaround by usinr Windows registry modification doesn't work for me.
On systems I tested these registry entries didn't even exist.
There is an interaction between Java installer launched from cmd.exe (windows console) running under "System" account and cmd.exe itself.
Installer performs a blocking operation which waits for response from console or just console signals to installer to wait until
a certin condition is fulfilled.
I need to investigate more the details of this interaction to provide a final solution for this CR.
cmd.exe and Java installer are two separate windows processes
and Java installer doesn't need cmd.exe to continue with installation so
the simple workaround is just to stop cmd.exe process
after it lunches jre installer as a "system" process.
Jre installer will not need cmd.exe anymore
and will continue as a "System" process with jre installation .
So the workaround will be:
1) Use ???psexec.exe ???s cmd.exe??? ??? This opens command prompt under system context
2) Type everything within quotes but not the quotes itself "jre-6u22-windows-i586.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 STATIC=1 /L %TEMP%\in16022.log"
3) type "exit". It will stop cmd.exe process but will not stop jre-6u22-windows-i586.exe
which will continue under system account.
Create a file "Jre_system_install.cmd".
This file has to contain two lines:
jre-6u22-windows-i586.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 STATIC=1 /L %TEMP%\in16022.log
2) Use ???psexec.exe ???s cmd.exe??? ??? This opens command prompt under system context
3) cd to a directory containing Jre_system_install.cmd
4) type "Jre_system_install.cmd" - it will launch java installer under SYSTEM account
Above workaround didn't work for customer see "Comments" section for details.