JDK-6725840 : REG: After Manual update; try to install 6u10 again/patch to 6u12, installation will fail with error
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-07-15
  • Updated: 2010-05-11
  • Resolved: 2008-07-15
Related Reports
Duplicate :  
Relates :  
Description
I have tested it on Win XP. The same issue can exist on other OS as well.

How to reproduce:
1.) Install 6u10 RC build 27 of JRE
2.) Go to registry path [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
 and set this "UpdateServletURL"="http://sqindia.india.sun.com/disk17/deployment/pg152891/PIPTest/map.xml"
4.) Open JCP and go to update tab. Click on "Update Now" button. And Make sure JCP is still open.
5.) Proceed with update by clicking Install button. It will show File In use dialog, Proceed with the upgrade. Now you should have JRE 6u11 
6.) Uninstall Jre 6u11 from the Add/Remove.  Proceed with the uninstallation.
 Or Try to install 6u12 dummy bundle without uninstallaing anything
7.) Install 6u10 again.

Expected Behavior:
Install should go fine and JRE 6u10 or 6u12 should be installed

Actual Behavior:
Installation fails with Error "Error 25025: A previous Java uninstallation was never completed, you need to restart your computer before installing Java".

This could be because of  "PendingFileRenameOperations" under "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager" has following registry key.

\??\C:\PROGRA~1\Java\jre6\bin\jusched.exe

\??\C:\PROGRA~1\Java\jre6\bin\jusched.exe

\??\C:\PROGRA~1\Java\jre6\bin\RTA00610
\??\C:\PROGRA~1\Java\jre6\bin\jusched.exe

This is working fine with b26. This seems to be regression from b26. I have checked in b26 and b24, there are no such issues.

Comments
EVALUATION This is because patch-in-place is not stopping jusched. See 6712089 / 6710572. The fix is to stop jusched.exe during patch-in-place, not trying to surgically clean up HKEY_LOCAL_MACHINE\SYSTEM\ControlSet\Control\Session Manager, PendingFileRenameOperations *** (#1 of 1): [ UNSAVED ] ###@###.###
15-07-2008