Xceed Zip for COM/ActiveX on x86/x64 Documentation
Getting started quickly / Converting a zip file into a self-extracting zip file
In This Topic
    Converting a zip file into a self-extracting zip file
    In This Topic

    Adding self-extracting zip file capability to an already existing zip file 

    To add self-extracting capability to an already created zip file, perform the following 4 steps:

    Visual Basic Copy Code

    ' Don't forget to put an Xceed Zip control on a form
    Dim ResultCode As xcdError

    Call XceedZip1.License( "your license key" ) 

    XceedZip1.ZipFilename = "c:\zip files\sample.zip"
    XceedZip1.SfxBinaryModule = "xcdsfx32.bin"

    ResultCode = XceedZip1.Convert("c:\zip files\sample.exe")

    If ResultCode = xerSuccess Then
          XceedZip1.License( 'your license key' ); 

       XceedZip1.ZipFilename := 'c:\zip files\sample.zip'; 
       XceedZip1.SfxBinaryModule := 'c:\Program Files\Xceed Components\Bin\Sfx\xcdsfx32.bin';  

       xErr := XceedZip1.Convert( 'c:\zip files\sample.exe'); 

       ShowMessage( XceedZip1.GetErrorDescription( xvtError, xErr ) ); 
    end;

    Things you should consider 

    You will probably want to customize the self-extracting zip files you create. For example, you may want to change the self-extracting zip file's title and introduction message, or have it suggest a default unzipping folder to the user running it. There is a group of properties that start with "Sfx" designed to let you do just that. See the About the Self-Extractor Module properties topic to find out what you can customize. 

    When you are converting an existing zip file into a self-extracting zip file, you can't modify the contents of the existing zip file. Consult the Creating a new self-extracting zip file topic if you want to know what kind of control you're missing when you aren't creating the self-extracting zip file directly from the source files to zip up.