jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
IzPack
  • IzPack
  • IZPACK-327 Improve user documentation
  • IZPACK-331

Document how to debug an uninstaller

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 4.2.1
  • Fix Version/s: 4.3.1
  • Component/s: Documentation
  • Labels:
    None
  • Patch Submitted:
    Yes
  • Number of attachments :
    2

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); }

}

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    IZPACK-331.patch
    08/Apr/09 6:35 AM
    2 kB
    Christian d'Heureuse
  2. Java Source File
    IzPackUninstallerStarter.java
    02/Apr/09 6:41 PM
    0.2 kB
    Christian d'Heureuse

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Julien Ponge added a comment - 02/Apr/09 4:22 AM

Would you have a piece of documentation for this?

Show
Julien Ponge added a comment - 02/Apr/09 4:22 AM Would you have a piece of documentation for this?
Hide
Permalink
Christian d'Heureuse added a comment - 02/Apr/09 6:41 PM

Added a sample class that can be used to start an uninstaller so that console output is visible. (Console output is otherwise not visible on Windows). It bypasses the SelfModifier class.

When the class is included in the uninstaller JAR, the following command can be used:

java -cp uninstaller.jar IzPackUninstallerStarter

Show
Christian d'Heureuse added a comment - 02/Apr/09 6:41 PM Added a sample class that can be used to start an uninstaller so that console output is visible. (Console output is otherwise not visible on Windows). It bypasses the SelfModifier class. When the class is included in the uninstaller JAR, the following command can be used: java -cp uninstaller.jar IzPackUninstallerStarter
Hide
Permalink
Julien Ponge added a comment - 08/Apr/09 4:18 AM

I have updated the FAQ with a link to this issue as it fits better here.

Show
Julien Ponge added a comment - 08/Apr/09 4:18 AM I have updated the FAQ with a link to this issue as it fits better here.
Hide
Permalink
Christian d'Heureuse added a comment - 08/Apr/09 6:35 AM

Added a patch to implement a "-d" (direct) option switch for Uninstaller.java.

This would make it easier to get console output from the uninstaller.

With this patch, the uninstaller can be called as:

java -jar uninstaller.jar -d

Show
Christian d'Heureuse added a comment - 08/Apr/09 6:35 AM Added a patch to implement a "-d" (direct) option switch for Uninstaller.java. This would make it easier to get console output from the uninstaller. With this patch, the uninstaller can be called as: java -jar uninstaller.jar -d
Hide
Permalink
Julien Ponge added a comment - 05/May/09 1:43 AM

Marked as iixed as Christian has updated the issue.

Show
Julien Ponge added a comment - 05/May/09 1:43 AM Marked as iixed as Christian has updated the issue.

People

  • Assignee:
    Julien Ponge
    Reporter:
    Christian d'Heureuse
Vote (0)
Watch (1)

Dates

  • Created:
    09/Mar/09 2:13 PM
    Updated:
    16/Jun/09 1:25 PM
    Resolved:
    05/May/09 1:43 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.