JDK-6999748 : Uninstaller Error occurs while trying to uninstall apps imported by 32 bit JWS on 64 bit systems
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6u24
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: x86
  • Submitted: 2010-11-12
  • Updated: 2016-07-21
  • Resolved: 2015-09-18
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.
JDK 8 JDK 9
8u102Fixed 9 b85Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
"An Error occurred while trying to uninstall application. It may have already been uninstalled..." message appears after attempt to uninstall an application from "Programs and Features"(Add/Remove Programs)
The reason is that the value of UninstallString(HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Your Application Name) contains "C:\WINDOWS\system32\javaws.exe" instead of "C:\WINDOWS\SysWOW64\javaws.exe"

Comments
No plans to fix for 6u or 7u. Raise the concern via me or Support if there's an issue
24-02-2016

crucible review for backport to 8u: https://java.se.oracle.com/code/cru/CR-JDK8UDEV-321
16-02-2016

this is even worse in JDK9 - would fail even on a 32 bit os, or with 64 bit java deployment stack installed. The code to create shortcuts we updated to use the full path to javaws.exe from the latest jre installed, instead of using windows system dir/javaws.exe, using RegFX.GetLatestJavaws32or64BitHome(). However the code to create Add/Remove program entries was never updated, so it points uninstall to non-existant c:/windows/system32/javaws.exe. javaws.exe is no longer in the windows system dir, so this change must be applied not only to shortcut creation, but to all other places path to javaws.exe is put in registry: 1.) Java_com_sun_deploy_config_WinPlatform_addRemoveProgramsAdd 2.) Java_com_sun_deploy_config_WinPlatform_addRemoveProgramsRemove looks like everything else was updated by updating Platform.getSystemJavawsPath(), but for shortcuts, updateShortcutToLatestJRE() only updates shortcuts, not AddRemoveProgram entries or Associations.
15-05-2015