Xceed Zip for COM/ActiveX on x86/x64 Documentation
Getting started quickly / Unzipping files
In This Topic
    Unzipping files
    In This Topic

    VB example Delphi example VC++ example C# example VB.NET example

    Basic unzipping

    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.

    Things you should consider

    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:

    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.