Class SelfExtractorOptions
Class SelfExtractorOptions
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.5.0)
Options for creation of self-extracting executable archive.
public class SelfExtractorOptions
Inheritance
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:\pictogram.ico" };
archive.Save(zipFile, new ArchiveSaveOptions() { SelfExtractorOptions = sfxOptions });
}
}
Constructors
SelfExtractorOptions()
public SelfExtractorOptions()
Properties
CloseWindowOnExtraction
Gets or sets a value indicating whether an extractor window must be closed upon extraction or not.
public bool CloseWindowOnExtraction { get; set; }
Property Value
ExtractorTitle
Gets or sets the title of extractor’s window.
public string ExtractorTitle { get; set; }
Property Value
RunAfterExtraction
Gets or sets a program to be executed after the archive extraction is completed.
public string RunAfterExtraction { get; set; }
Property Value
TitleIcon
Gets or sets the path to title icon for main windows of extractor application.
public string TitleIcon { get; set; }