[izpack-users] Removing files before installing

Jose M. Rus josemrus at gmail.com
Wed Jan 24 16:44:36 CET 2007

Thank you Klaus,

I've been exploring the listener path you mentioned but it doesn't really
fit my needs. I've solved it by using the ProcessPanel and launching some
batch files to process the update just after the installation.

What I wanted was something to:
* Delete some files and directories before the installation (the files to
* Keep some files and directories (for example configuration files).

What I consider something near to the ideal solution would be to add a new
parameter to <fileset> inside pack elements to force deletion of some dirs
(¿"remove"?). This could empty dirs completely, complementing the "override"
attribute (which doesn't delete files created after the installation by the
application itself or files present in the previous version that should be
deleted during the upgrade). But this seemed too much complicated so I took
the easy path of launching batch files, thanks anyway.


On 1/18/07, Klaus Bartz <bartzkau at gmx.net> wrote:
> Hi Jose,
> not by configure, but you can write a custom action which will
> be called before installation and do it. Only possible if you are
> firm with Java. If you will do it, there is a description in the
> docu and some existent InstallerListener in the subdir "event".
> Cheers
> Klaus
> Am 18.01.2007, 21:45 Uhr, schrieb Jose M. Rus <josemrus at gmail.com>:
> > Hi list,
> >
> > Is is possible to configure IzPack to delete the installation directory
> > when
> > it's not empty before installing its files? I have some problems when
> the
> > user installs a new version of the application over a previous
> directory,
> > because of already existing jar and configuration files.Ideally the user
> > should uninstall the previous version, but this rarely happens.
> >
> > Regards,
> >
> >
> > __________ NOD32 1.1392 (20060202) Information __________
> >
> > Diese E-Mail wurde vom NOD32 Antivirus System geprüft
> > http://www.nod32.com
> >
> --
> Erstellt mit Operas revolutionärem E-Mail-Modul:
> http://www.opera.com/mail/
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20070124/a150edf0/attachment.html 

More information about the izpack-users mailing list