Date: Sun, 18 Oct 1998 13:47:00 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Endlisnis cc: djgpp AT delorie DOT com Subject: Re: Uninstaller. In-Reply-To: <3626653F.2266F083@unb.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Thu, 15 Oct 1998, Endlisnis wrote: > 1) It deletes the file (using the 'remove' function, which I assume does not > work on directories). DJGPP's `remove' can delete directories as well. > 2) It tries to delete the directory using 'rmdir' function. > 3) If the deleting of the directory succeeded (only works on empty > directories), then move back one directory level and go to #2. Do you at all use the manifest files? Note that most manifest files list the directories *before* the files in those directories. I'm not sure whether this affects the above logic, and how. > So, mine will ignore any directory entries in the manifest file (it will > actually say that it can't delete the 'file'). This message might confuse the user. Make sure the message wording clearly indicates the message doesn't mean any trouble (or don't print the message at all, unless the user requests verbose operation). > The one possible > side-effect of this is if you had your DJGPP package installed in a directory > structure like this: > "C:\LANG" directory with only entry being the DJGPP directory. > (C:\LANG\DJGPP\ is the installation path) then the LANG dir would be removed > as a final act of completely uninstalling DJGPP (assuming that you had not > added any new files, or none were created) That is exactly what I was warning against in my previous message. As I said, I'm not sure removing directories is a good idea. Maybe make directories' removal interactive, and run it at the very end of the uninstall.