Uploaded image for project: 'IzPack'
  1. IzPack
  2. IZPACK-331

IZPACK-327 Document how to debug an uninstaller

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 4.2.1
    • Fix Version/s: 4.3.1
    • Component/s: Documentation
    • Labels:
      None

      Description

      The FAQ documents how to get console and debug output from an installer (http://docs.codehaus.org/display/IZPACK/FAQ+-+Frequently+asked+questions#FAQ-Frequentlyaskedquestions-DebugOutput ). But it's not so easy to get console output from an uninstaller, at least under Windows.

      When the uninstaller is called using

      java -jar -DTRACE=TRUE uninstaller.jar

      console output is not visible.

      The uninstaller uses the SelfModifier class to start a new java VM and the console output of the second VM is not visible.

      One possible solution is to write a class that starts the uninstaller code by bypassing SelfModifier:

      import com.izforge.izpack.uninstaller.Uninstaller;

      public class IzPackUninstallerStarter {

      public static void main (String args[])

      { Uninstaller.uninstall (args); }

      }

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              julienponge Julien Ponge
              Reporter:
              christiandheureuse Christian d'Heureuse
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: