SelfExtractorOptions Class

Options for creation of self-extracted executable archive.
Inheritance Hierarchy
SystemObject
  Aspose.Zip.SavingSelfExtractorOptions

Namespace:  Aspose.Zip.Saving
Assembly:  Aspose.Zip (in Aspose.Zip.dll) Version: 20.3
Syntax
[SerializableAttribute]
public class SelfExtractorOptions

The SelfExtractorOptions type exposes the following members.

Constructors
  NameDescription
Public methodSelfExtractorOptions
Initializes a new instance of the SelfExtractorOptions class
Properties
  NameDescription
Public propertyCloseWindowOnExtraction
Gets or sets a value indicating whether extractor window must be closed upon extraction or not.
Public propertyExtractorTitle
Gets or sets the title of extractor's window.
Public propertyTitleIcon
Gets or sets path to title icon for main windows of extractor application.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples
using (FileStream zipFile = File.Open("archive.exe", FileMode.Create))
{
    using (var archive = new Archive())
    {
        archive.CreateEntry("entry.bin", "data.bin");
        var sfxOptions = new SelfExtractorOptions() { ExtractorTitle = "Extractor", CloseWindowOnExtraction = true, TitleIcon = "C:\pictorgam.ico" };
        archive.Save(zipFile, new ArchiveSaveOptions() { SelfExtractorOptions = sfxOptions });
    }
}
See Also