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

Bug in installation of the JRE when a previous version is already installed

XMLWordPrintable

    • x86
    • windows_nt



      Name: pa48320 Date: 07/29/2002

      This is similar to 4554698 and appears to be fixed in 1.4 but we need it in 1.3.1. The problem is that if you install a version of the JRE such as 1.3.1_02 and set it to override the <APPLET> tag in IE, then install a later version such as 1.3.1_03 using the silent install which does not select to override the <APPLET> tag in IE then the MSVM is set as the VM of choice but is disabled. Accessing any page with an applet on it will ask that you download the MSVM. Downloading the MSVM does not fix the situation. The problem is the following area of the installation script: (from 1.3.1_04)
      // needs to create a dummy TreatAs key so that uninstaller
      // will remove the TreatAs key after JRE has been uninstalled
      RegDBSetDefaultRoot(HKEY_CLASSES_ROOT);

      Disable(LOGGING);
      svKey = "CLSID\\{08B0E5C0-4FCB-11CF-AAA5-00401C608501}";
      if (RegDBKeyExist(svKey)<0) then
      if (RegDBCreateKeyEx(svKey, "")<0) then
      return -1;
      endif;
      endif;
      Enable(LOGGING);

           szSubKey = svKey + "\\TreatAs";
           if (RegDBKeyExist(szSubKey)<0) then
      if (RegDBCreateKeyEx(szSubKey, "")<0) then
      return -1;
      endif;
           endif;

           if (RegDBSetKeyValueEx(szSubKey, "", REGDB_STRING, "{08B0E5C0-4FCB-11CF-AAA5-00401C608501}", -1)<0) then
      return -1;
           endif;
      endif;

      Simply creating that key and settings its value to itself causes the problem.
      ======================================================================

            ccheung Calvin Cheung
            pallenba Peter Allenbach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: