SelfExtractorOptions class

Options for creation of self-extracted executable archive.

public class SelfExtractorOptions


Name Description
SelfExtractorOptions() The default constructor.


Name Description
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.


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