Class SelfExtractorOptions

Class SelfExtractorOptions

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

Opzioni per la creazione di un archivio eseguibile auto-estraente.

public class SelfExtractorOptions

Ereditarietà

objectSelfExtractorOptions

Membri Ereditati

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

Esempi

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 = "Estraente", CloseWindowOnExtraction = true, TitleIcon = "C:\pictorgam.ico" };
        archive.Save(zipFile, new ArchiveSaveOptions() { SelfExtractorOptions = sfxOptions });
    }
}

Costruttori

SelfExtractorOptions()

public SelfExtractorOptions()

Proprietà

CloseWindowOnExtraction

Ottiene o imposta un valore che indica se la finestra dell’estrattore deve essere chiusa al termine dell’estrazione o meno.

public bool CloseWindowOnExtraction { get; set; }

Valore della Proprietà

bool

ExtractorTitle

Ottiene o imposta il titolo della finestra dell’estrattore.

public string ExtractorTitle { get; set; }

Valore della Proprietà

string

RunAfterExtraction

Ottiene o imposta un programma da eseguire dopo che l’estrazione dell’archivio è completata.

public string RunAfterExtraction { get; set; }

Valore della Proprietà

string

TitleIcon

Ottiene o imposta il percorso dell’icona del titolo per le finestre principali dell’applicazione dell’estrattore.

public string TitleIcon { get; set; }

Valore della Proprietà

string

 Italiano