[izpack-devel] Backup for the installed files and the wipeAbortproblem

Bartz, Klaus Klaus.Bartz at coi.de
Mon Aug 21 09:45:45 CEST 2006


Hi Michael,
nice, but e.g. are your installing knowing whether a version of your
program is already installed or not? What about adding or removing
a pack to/from the installation?

Since longer time I am thinking about "maintenance" in IzPack.
I will not tinker here a little bit and there a little bit else
make an update/upgrade mechanism like it is in MSI.
E.g. I think there should be a data base independant from one
installation to store e.g. what packs are installed in what
version etc.
Up to know I have not had the time to do it because I think it
will be much work. Next time there are also not to much time for
it. It will be nice if work can be shared.

The first step should be to make a concept. Are you - or any other -
interested?

Cheers

Klaus

>-----Original Message-----
>From: izpack-devel-bounces at lists.berlios.de
>[mailto:izpack-devel-bounces at lists.berlios.de]On Behalf Of Michael
>Scherer
>Sent: Monday, August 21, 2006 9:10 AM
>To: izpack-devel at lists.berlios.de
>Subject: [izpack-devel] Backup for the installed files and the
>wipeAbortproblem
>
>
>Good morning all.
>
>As you might know (or not) I had some issues two weeks ago 
>cause an installer 
>erased all files of an application after we canceled it right 
>after the 
>InstallationPanel.
>I know that this is no "real" problem cause IzPack is more an 
>installer than 
>an updater but we use it here for both purposes.
>
>First of all I disabled the wipeAbort() function for our 
>installer to make 
>sure that won't happen again. That's not the ideal solution, I 
>know, but makes 
>sure that at least the configs remain where they belong. I'll 
>come back to the 
>wipeAbort() function later.
>
>Second we decided that I'd be nice to have some sort of 
>"backup" in IzPack.
>If not during the installation process, than at least in the 
>Uninstaller.
>What I implemented now is a backup class, that gets the 
>filenames of the files 
>that are installed before they are copied to the filesystem 
>and adds them, if 
>enabled with
>  <uninstaller write="yes" backup="yes" .../>
>to the subdirectory "backup" of the Uninstaller.jar
>On a local filesystem that doesn't really takes much time.
>
>The Uninstaller(Frame) got extended that if the "backup" 
>subdirectory exists 
>it allows the user to roll back that one installation.
>So if you installed the wrong update into the wrong directory 
>... simply roll 
>it back with the Uninstaller.
>
>Question 1: Do the IzPack-Devs like that idea?
>Question 2: If so, where to send the patches? :)
>
>Now back to the wipeAbort() function.
>With the backup-info/data in hand the wipeAbort function might 
>also rollback 
>the previously done steps instead of erasing the whole directory tree.
>Which is IMHO a bit of an awkward approach anyway.
>
>Ideas? Opinions? Flames? :)
>
>Greetings,
>  Michael
>
>_______________________________________________
>izpack-devel mailing list
>izpack-devel at lists.berlios.de
>https://lists.berlios.de/mailman/listinfo/izpack-devel
>



More information about the izpack-devel mailing list