PDA

View Full Version : Uninstalling something created by Zip Plug In



mercury049
02-15-2006, 04:08 PM
Greetings,
My project has a folder which contains over 10k files in it. This of course took forever to install via the installer reading from CD. So I zipped it up and had the zip written from the CD to the %AppFolder%, then it uses the Zip plugin to extract them. It's much much faster this way.
However, I have a problem when uninstalling.
When you run an uninstall, it will remove the Documents.zip file, but not the Documents folder that it extracted from it while installing. This is a problem as it's over 500 megs in size.
Does anyone know of a way I could get the uninstaller to delete that folder during the installation?

Thanks in advance.
Jeff

mercury049
02-16-2006, 09:20 AM
I meant for the question at the end to say the following:

Does anyone know of a way that I could get the uninstaller to uninstall the folder created by the Unzipping during the UNinstallation?
Thanks

Eagle
02-16-2006, 10:24 PM
couple thoughts:

1. for install efficiency: try 'unzipping' directly from the CD to your destination folder\\ --see if it reduces install time

2. try the: UninstallData.AddItem (...) action-s
"Adds an item to the uninstall configuration file.
Note: This action can only be used during the install and will not work during the uninstall."

you could add the full destination path info to the uninstall data file.

-based on where the unzipping destination is expanded to at uninstall time
could then use the folder.deletetree(..) action at the appropriate uninstall stage


hth a little

Adam
02-17-2006, 03:53 PM
You could automate this by using a File.Find() action and a loop. This will save you from doing a seperate action for each item added to the uninstall.

Adam Kapilik