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
appIApplicationApplication.
Properties
InstalledFilePaths
Get set of path of installed files.
public ISet<string> InstalledFilePaths { get; }
Property Value
IsApplicationIconUpdated
Check whether application icon has been updated after installation or not.
public virtual bool IsApplicationIconUpdated { get; }
Property Value
PackageFileName
Get or set name of package file to install.
public string? PackageFileName { get; set; }
Property Value
TargetDirectoryPath
Get or set path of target directory to install package.
public string? TargetDirectoryPath { get; set; }
Property Value
Methods
OnInstallingFile(string)
Raise InstallingFile event.
protected bool OnInstallingFile(string filePath)
Parameters
filePathstringPath of file to be installed.
Returns
- bool
True to continue installation.
ReportInstalledFilePath(string)
Report path of installed file.
protected void ReportInstalledFilePath(string filePath)
Parameters
filePathstringFile 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