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

jpackage exe uninstallers don't return correct exit code in case of failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • None
    • tools
    • b07

      exe installers created by jpackage don't propagate a status code of uninstallation command. They return 0 in case of clean uninstall and -1 otherwise. There is no way to figure out the reason for uninstallation failure from the exit code of exe installer.

      In case of uninstallation failure, a message box is displayed. This defeats the ability to use jpackage-generated exe installers in batch execution.

      The fix must transform the uninstallation status code into exe installer's exit code and exe installer must not have UI when used for uninstallation.

            asemenyuk Alexey Semenyuk
            asemenyuk Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: