Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8028779

JRE installer has \\ path problem in CustomAction table, UninstallJRE action.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 7-pool
    • 7u45
    • install
    • windows_2012

      FULL PRODUCT VERSION :
      C:\Windows\system32>java -version
      java version "1.7.0_45"
      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      All Windows Desktop and Server versions, 2003 to current release

      A DESCRIPTION OF THE PROBLEM :
      The JRE MSI for the 32 and 64 bit versions need to have the following entries corrected:
      In the CustomAction table, Action UninstallJRE
       - Current Target: rundll32.exe "[bin]\installer.dll",UninstallJREEntryPoint
       - Corrected Target: rundll32.exe "[bin]installer.dll",UninstallJREEntryPoint

      Variable [bin] already has a trailing backslash, so the backslash ahead of installer.dll is unnecessary and in fact causes the uninstall to fail with the error:

      "There was a problem starting C:\Program Files (x86)\Java\jre7\bin\\installer.dll
      The specified module could not be found"


      REGRESSION. Last worked in version 6u43

      ADDITIONAL REGRESSION INFORMATION:
      C:\Windows\system32>java -version
      java version "1.7.0_45"
      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Install a previous version of JRE 7, one older that 1.7.0_45.
      Then install version 1.7.0_45 on top of the previous version.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The installer should be looking for the correct path to find the uninstaller for the previous version.
      ACTUAL -
      Error message generated:

      "There was a problem starting C:\Program Files (x86)\Java\jre7\bin\\installer.dll
      The specified module could not be found"

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      "There was a problem starting C:\Program Files (x86)\Java\jre7\bin\\installer.dll
      The specified module could not be found"

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Workaround it to edit the MSI and fix the following entry"
      CustomAction table, Action UninstallJRE
       - Current Target: rundll32.exe "[bin]\installer.dll",UninstallJREEntryPoint
       - Corrected Target: rundll32.exe "[bin]installer.dll",UninstallJREEntryPoint

            jqzuo Jennifer Zuo (Inactive)
            coffeys Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: