JDK-6905779 : rewrite patchjre.exe into dll and get more info
  • Type: Enhancement
  • Component: install
  • Sub-Component: install
  • Affected Version: 6u17
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2009-11-30
  • Updated: 2014-09-18
  • Resolved: 2014-09-18
Related Reports
Relates :  
Relates :  
There is a rise in complaints, where consumers are getting error 1722 during installation. The is applies to all Java versions, all supported windows platforms, all supported broesers. Log files are attached, more log files can be provided upon request.
Some comments from consumers:

1) Please can you tell me how to correct error 1722? 
I have attached the log files that your help site said to send you (there are 3 MSI files as I tried the install 3 times), plus I can tell you that I got the following warning then error windows during the "Apply Java Patches" stage of the install process: 
Warning: bin\awt.dll: Old File not found. However, a file of the same name was found. No update since file contents do not match. OK. 
Error: Java (TM) Update fails to apply changes to your system. OK. 
I haven't tried the offline installation as suggested on your help website, but if you think it would work given the above error messages, let me know. 
This is the first time I have ever experienced an error during an automatic Java update. I am on Windows XP by the way.

2) Error 1722.There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.  Action patchjre, location: C:\Program Files\Java\jre6\patchjre.exe, command: -s "C:\Program Files\Java\jre6"

Hi Alexey, just confirmed with Bill this issue is not applicable 8u20/25 onwards with the new patching model. Closing as "Won't Fix".

It has not been done in JDK8. patchjre.exe code still exists, even though it's getting called from installer.dll now. Ideally, installer.dll should just do it all without a need for the patchjre.exe executable.

This may have already been done for 8.

Yes, the purpose was to be able to control dialogs displayed, capture return codes from rtpatch code, and log details of failures.

Is the purpose of the move of the exe to the dll in order to generate more log information?

There is still a request to move patchjre.exe code to installer.dll

There is still a request to move patchjre.exe code to installer.dll

Please close this bug, as we are no longer getting any further reports as to Error 1722 - Failed to Install -- need to rewrite patchjre.exe into dll and get more info Should we get any further reports related to this issue we will reopen this bug. - Shak

EVALUATION The fix should be to do the following: The online installer should check the bin/awt.dll file to make sure it is matching checksum of the version we're expecting. If it's not, a full uninstall/reinstall should take place.

EVALUATION Here is my current investigation results. I have not been able to reproduce the 1722 error so far. I am waiting to get the jre version that user patches from. Since it's indicated that the issue is seen with the 6u17 installers I have tested both 6u17b04(fcs) and 6u17b78(latest plus build). And I started with 6u13b03 as the early version for testing PIP. The testcases are here and they run on win xp. 1. Install 6u13b04 offline rename awt.dll Install 6u17b04, jre reinstalled 2.Install 6u13b03 offline rename awt.dll Install 6u17b04 online, patched, but did not install new awt.dll (this seems to be issue, but it's different from user's error) 3.Install 6u13b03 offline Install 6u17b78 online, patched 4.Install 6u13b03 offline rename awt.dll Install 6u17b78 online, patched, but did not install awt.dll 5.Install 6u13b03 offline Run applet demo in IE Install 6u17b78 online, FIU dialog displays to ask close browser, closed IE and patched OK. 6.Install 6u13b03 offline Run javaws app Install 6u17b78 online, FIU dialog displays to ask close java app, closed and patched OK. 7.Install 6u13b03 offline rename \jre6\bin Install 6u17b78 online, it went to the install complete error dialog directly, did not show 1722 error. I would need more information from the user if possible 1. The initial jre version on the system. 2. The latest jre installer version that user tries to install. 3. The user's operating system info 4. The steps to reproduce the error, if the issue is always reproducible I also think that if we can get access to the user system for diagnosis it would be very helpful. Thanks.

EVALUATION assigning to install team for evaluation