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

MSI creates incorrect UninstallString in registry - uses /I instead of /X

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 8u31
    • install
    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_31"
      Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
      Java HotSpot(TM) Client VM (build 25.31-b07, mixed mode, sharing)


      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      After installing the product, the registry value for UninstallString is incorrect.

      The key:
      HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F83218031F0}

      For value UninstallString the data is:
      MsiExec.exe /I{26A24AE4-039D-4CA4-87B4-2F83218031F0}

      The flag for msiexec to uninstall a product is "/X", not "/I".

      REGRESSION. Last worked in version 7u75

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.7.0_75"
      Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
      Java HotSpot(TM) Client VM (build 24.75-b04, mixed mode, sharing)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Uninstall all java
      2. Install java via MSI:
      msiexec /I jre1.8.0_31full.msi /qn


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The UninstallString in the Windows Installer "Uninstall" entry should specify the msiexec flag /X for the GUID of the product; i.e.:
      MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83218031F0}
      ACTUAL -
      The UninstallString uses /I instead of /X:
      MsiExec.exe /I{26A24AE4-039D-4CA4-87B4-2F83218031F0}

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Extract the UninstallString from the registry and manually (or via script) change the /I flag to /X.


            aivanov Alexey Ivanov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: