Class SelfExtractorOptions
Contents
[
Hide
]SelfExtractorOptions class
Options for creation of self-extracting executable archive.
public class SelfExtractorOptions
Constructors
Name | Description |
---|---|
SelfExtractorOptions() | The default constructor. |
Properties
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. |
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
- namespace Aspose.Zip.Saving
- assembly Aspose.Zip