Class SelfExtractorOptions

Class SelfExtractorOptions

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.2.0)

Options for creation of self-extracting executable archive.

public class SelfExtractorOptions

Inheritance

objectSelfExtractorOptions

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

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 });
    }
}

Constructors

SelfExtractorOptions()

public SelfExtractorOptions()

Properties

CloseWindowOnExtraction

Gets or sets a value indicating whether extractor window must be closed upon extraction or not.

public bool CloseWindowOnExtraction { get; set; }

Property Value

bool

ExtractorTitle

Gets or sets the title of extractor’s window.

public string ExtractorTitle { get; set; }

Property Value

string

RunAfterExtraction

Gets or sets a program to be executed after the archive extraction is completed.

public string RunAfterExtraction { get; set; }

Property Value

string

TitleIcon

Gets or sets path to title icon for main windows of extractor application.

public string TitleIcon { get; set; }

Property Value

string

 English