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: 22.1
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
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(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