IzPack

If a InstallerListener throws an exception during installation, the registered CleanupClient instances are not invoked

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.11.0
  • Fix Version/s: 4.0.0
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

If a InstallerListener throws an exception during installation, the registered CleanupClient instances are not invoked. For example, if the AntActionInstallerListener encounters an error, the installation is exited without ever invoking the registered CleanupClients. This can cause the installation to be left in an inconsistent state.

Activity

Hide
Brett Bergquist added a comment -

I have a fix for this ready to go using the Housekeeper mechanism.

Show
Brett Bergquist added a comment - I have a fix for this ready to go using the Housekeeper mechanism.
Hide
Brett Bergquist added a comment -

Changed some System.exit calls in the installer and uninstaller to call Housekeeper.cleanup instead so that the registered cleanup listeners will be invoked before the installer or uninstaller exits.

Show
Brett Bergquist added a comment - Changed some System.exit calls in the installer and uninstaller to call Housekeeper.cleanup instead so that the registered cleanup listeners will be invoked before the installer or uninstaller exits.
Hide
Julien Ponge added a comment -

The issue is confirmed to be closed.

Show
Julien Ponge added a comment - The issue is confirmed to be closed.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: