Class SelfExtractorOptions

Class SelfExtractorOptions

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)

Tùy chọn để tạo lưu trữ thực thi tự giải nén.

public class SelfExtractorOptions

Kế thừa

objectSelfExtractorOptions

Các thành viên kế thừa

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Ví dụ

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 });
    }
}

Các hàm khởi tạo

SelfExtractorOptions()

public SelfExtractorOptions()

Các thuộc tính

CloseWindowOnExtraction

Lấy hoặc thiết lập giá trị cho biết liệu cửa sổ extractor có phải đóng khi giải nén hay không.

public bool CloseWindowOnExtraction { get; set; }

Giá trị thuộc tính

bool

ExtractorTitle

Lấy hoặc thiết lập tiêu đề cho cửa sổ của extractor.

public string ExtractorTitle { get; set; }

Giá trị thuộc tính

string

RunAfterExtraction

Lấy hoặc thiết lập chương trình sẽ được thực thi sau khi hoàn tất việc giải nén lưu trữ.

public string RunAfterExtraction { get; set; }

Giá trị thuộc tính

string

TitleIcon

Lấy hoặc thiết lập đường dẫn đến biểu tượng tiêu đề cho cửa sổ chính của ứng dụng extractor.

public string TitleIcon { get; set; }

Giá trị thuộc tính

string

 Tiếng Việt