VB example Delphi example VC++ example C# example VB.NET example
To unzip files, perform the following 4 steps. Put the Xceed Zip control on a form, then:
Specify the zip file to unzip files from. To do this, set the ZipFilename property.
Specify where to unzip files to. To do this, set UnzipToFolder property.
Tell Xceed Zip to start unzipping. To do this, call the Unzip method.
Make sure it worked successfully. To do this, check the Unzip method's return value.
The main questions you should ask yourself when unzipping files are:
Do you want to unzip only some files, not all of them? See the FilesToProcess property.
Do you want to recreate paths stored in the zip file? See the PreservePaths property.
Do you want to display the status of the unzipping operation? See the GlobalStatus event.
Are you possibly unzipping a spanned zip file? If so, write a handler for the InsertDisk event.
Do you want to preserve existing files? Set the SkipIfExisting property to true.
Other questions you may want to consider are:
Do you want to unzip only certain types of files? See the filtering properties.
Are the files you are unzipping password-protected? See the EncryptionPassword property.
Do you want to edit a file's info before unzipping? See the UnzipPreprocessingFile property.
If there's anything else you need to do that's not mentioned here, consult the Properties topic, or search the index – chances are, Xceed Zip does what you need. If not, ask Xceed Software whether it is possible or not.