[izpack-users] Requesting reboot at end of uninstallation.

Miraodb miraodb at hotmail.com
Thu Feb 9 09:58:38 CET 2006


Hi scott,

do you really want to go through the pain of a listener for such a small
thing.... that's the question.
The way i see it, it's very tiny change and a very specific need.
Why don't you just add the label and text into UninstallerFrame.java on your
side ?
So easy and quick.

Something like that:

RebootLabel = new JLabel(langpack.getString("uninstaller.reboot"),
icons.getImageIcon("warning"), JLabel.TRAILING);
buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0);
gbConstraints.anchor = GridBagConstraints.WEST;
gbConstraints.fill = GridBagConstraints.NONE;
layout.addLayoutComponent(RebootLabel , gbConstraints);
contentPane.add(RebootLabel );

Obviously, gbConstraint can and should be changed depending on the layout
you wish for.

This way you can even keep the internationalization just by adding the
string for uninstaller.reboot in the locale
so you could add

in eng.xml:

<str id="uninstaller.reboot" txt="Some features need a reboot to be
uninstalled successfully. Please restart once finished uninstalling."/>

and there goes for the others......

Recompile the sources and rebuild your installer.

Hope that helps,
fabrice
----- Original Message ----- 
From: "Scott Taylor" <st-izpack at taylorit.com>
To: <izpack-users at lists.berlios.de>
Sent: Thursday, February 09, 2006 8:34 AM
Subject: [izpack-users] Requesting reboot at end of uninstallation.


> Thanks for the info Fabrice.  If we forgot about actually performing a
> shutdown for the moment, is it possible to just show a GUI panel at the
> end of the uninstall that simply says "A reboot is required to complete
> the uninstall".
>
> I guess I could create a uninstaller listener which creates its own
> Swing panel. Is that the best way to go, or is there some support for
> modifying the uninstaller graphically in IzPack that I'm unaware of?
>
> /Scott
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> http://lists.berlios.de/mailman/listinfo/izpack-users
>





More information about the izpack-users mailing list