Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
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 :
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); }}
Would you have a piece of documentation for this?