To add self-extracting capability to an already created zip file, perform the following 4 steps:
Specify the zip file to convert. To do this, set the ZipFilename property.
Specify the self-extractor binary to use. To do this, set the SfxBinaryModule property.
Tell Xceed Zip to start converting. To do this, call the Convert method.
Make sure it worked successfully. To do this, check the Convert method's return value.
Visual Basic | Copy Code |
---|---|
|
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.