Table of Contents

Class BasePackageInstaller

Namespace
CarinaStudio.AutoUpdate.Installers
Assembly
CarinaStudio.AppBase.AutoUpdate.dll

Base implementation of IPackageInstaller.

public abstract class BasePackageInstaller : BaseUpdaterComponent, IApplicationObject, IPackageInstaller, IUpdaterComponent, IDisposable, INotifyPropertyChanged, IThreadDependent, ISynchronizable
Inheritance
BasePackageInstaller
Implements
Derived
Inherited Members
Extension Methods

Constructors

BasePackageInstaller(IApplication)

Initialize new BasePackageInstaller instance.

protected BasePackageInstaller(IApplication app)

Parameters

app IApplication

Application.

Properties

InstalledFilePaths

Get set of path of installed files.

public ISet<string> InstalledFilePaths { get; }

Property Value

ISet<string>

IsApplicationIconUpdated

Check whether application icon has been updated after installation or not.

public virtual bool IsApplicationIconUpdated { get; }

Property Value

bool

PackageFileName

Get or set name of package file to install.

public string? PackageFileName { get; set; }

Property Value

string

TargetDirectoryPath

Get or set path of target directory to install package.

public string? TargetDirectoryPath { get; set; }

Property Value

string

Methods

OnInstallingFile(string)

Raise InstallingFile event.

protected bool OnInstallingFile(string filePath)

Parameters

filePath string

Path of file to be installed.

Returns

bool

True to continue installation.

ReportInstalledFilePath(string)

Report path of installed file.

protected void ReportInstalledFilePath(string filePath)

Parameters

filePath string

File path.

Remarks

The method can be called in any thread.

ValidateParametersToStart()

Validate parameters to start performing operation.

protected override bool ValidateParametersToStart()

Returns

bool

True if all parameters are valid.

Events

InstallingFile

Raised before installing a file.

public event Func<IPackageInstaller, string, bool>? InstallingFile

Event Type

Func<IPackageInstaller, string, bool>