JDK-7141494 : deploy.dll has JCP uninstall issue
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-01-31
  • Updated: 2013-09-12
  • Resolved: 2012-02-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7u4Fixed 8 b25Fixed
I removed the code from installer.dll that was removing the jcp file from the system dir.  I noticed a bug with deploy.dll.

deploy.dll correctly installs the jcp file during JRE install, but incorrectly removes it during uninstall.  I think it has to do with this missing slash:

  get system dir [C:\WINDOWS\system32] OK
  isFileExist for [C:\WINDOWS\system32javacpl.cpl] return FALSE

EVALUATION problem: UnregisterJCP is not returning delete javacpl.cpl command when needed. we did not check the conditions in the right order. when previousDeployExists is false, curPluginHome is "". we need to delete system javacpl.cpl in this case. also, missing slash in path to system javacpl.cpl. fix: restore if previoudDeployExists and curPlugin is valid. otherwise, delete system javacpl.cpl.