JDK-7042296 : Silent Installations Break Java Installation
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 6u24
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2011-05-05
  • Updated: 2014-05-06
  • Resolved: 2014-05-06
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
jre-6u24-windows-i586.exe

ADDITIONAL OS VERSION INFORMATION :
Windows XP SP3, x86
Windows 7 x86

A DESCRIPTION OF THE PROBLEM :
When deploying silently and java.exe is in use, the installation fails.

Scenario that works:  Internet Explorer running and using java.exe, double clicking file to install will prompt the user to close Internet Explorer

Scenario that is failing:  With an older version of Java 6 installed, and Internet Explorer and java.exe in use, using a command-line installation with the silent switch (/s) causes major installation issues.

The install runs and does not prompt or kill the process while installing.  The previous version of java is removed from the file system and registry.  The installer then places the latest files on the file system.  The registry (all registry keys) are not installed.  This causes java to be in a broken state with no registry keys to call.

REGRESSION.  Last worked in version 6u24

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install any version of Java 6 (update 13 and higher normally on a system.
2.  Verify the installation worked by calling a program that requires java
3.  From a command line, deploy the latest version of java silently with valid command line switches (jre-6u13-windows-i586-p.exe /s)
4.  Installer finishes
5.  Navigate to file system folder with java files and find newest versions of files
6.  Navigate through the registry and notice the uninstall key for java does not exist nor any normal java registry keys

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
With Java and Internet Explorer in use:

1)  Deploying silently will fully install the program and all registry keys
2)  If files are in use, write the updated file to memory and wait for reboot.  Installer finishes and fully installs product.
ACTUAL -
Java is in a state that cannot be used.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Windows Event Viewer:  Application
Source: MsiInstaller
  Description: Product: Java(TM) 6 Update 24 -- Error 25099.  Unzipping core files failed.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
We have not found a work around for this issue.

Comments
We don't have plans to fix it
06-05-2014

EVALUATION Description says "Last worked in version 6u24", but yet shows the failure for 6u24. Regardless, I see no recent CRs in 6u24 or 6u25 that would introduce something like this as a regression. Running the offline installer when another Java 6 consumer JRE is installed should trigger a full reinstall. The silent uninstall of the previous JRE will be unable to complete because the files were locked. It should fail before doing anything. The then 2nd install part shouldn't even attempt to install the new JRE. The bug may be that the 2nd install actually attempts and then fails. We could create an RFE for supporting silent installs where there are files in use that are in the way. This would be a larger effort though. Currently, it should just not allow it.
29-06-2011