Class SelfExtractorOptions

Class SelfExtractorOptions

名称: Aspose.Zip.Saving 收藏: Aspose.Zip.dll (25.5.0)

创建自我提取可执行的档案的选项。

public class SelfExtractorOptions

Inheritance

object SelfExtractorOptions

继承人

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

收到或设置一个值,表明在提取时是否必须关闭抽出器窗口。

public bool CloseWindowOnExtraction { get; set; }

财产价值

bool

ExtractorTitle

接收或设置抽出器窗口的标题。

public string ExtractorTitle { get; set; }

财产价值

string

RunAfterExtraction

收到或设置一个程序进行执行后档案提取完成。

public string RunAfterExtraction { get; set; }

财产价值

string

TitleIcon

接收或设置标题图标的主要窗口的提取器应用程序的路径。

public string TitleIcon { get; set; }

财产价值

string

 中文