Class SelfExtractorOptions

SelfExtractorOptions class

Options for creation of self-extracting executable archive.

public class SelfExtractorOptions

Constructors

NameDescription
SelfExtractorOptions()The default constructor.

Properties

NameDescription
CloseWindowOnExtraction { get; set; }Gets or sets a value indicating whether extractor window must be closed upon extraction or not.
ExtractorTitle { get; set; }Gets or sets the title of extractor’s window.
RunAfterExtraction { get; set; }Gets or sets a program to be executed after the archive extraction is completed.
TitleIcon { get; set; }Gets or sets path to title icon for main windows of extractor application.

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