C# Class withSIX.Play.Applications.Services.SelfUpdater

Inheritance: ISelfUpdater, IEnableLogging, IApplicationService
Afficher le fichier Open project: SIXNetworks/withSIX.Desktop

Méthodes publiques

Свойство Type Description
PlayExecutable string

Méthodes publiques

Méthode Description
ApplyInstallIfRequired ( IAbsoluteFilePath exePath ) : bool
CheckForUpdate ( ) : System.Threading.Tasks.Task
ExistsAndIsValid ( IAbsoluteFilePath exePath ) : bool
GetLocalVersion ( ) : System.Version
IsInstalled ( ) : bool
IsLegacyInstalled ( ) : bool
IsLocalUpdate ( string exePath ) : bool
PerformSelfUpdate ( string action = SelfUpdaterCommands.UpdateCommand ) : bool
ProgramApplyUpdateIfExists ( IAbsoluteFilePath exePath ) : Task
SelfUpdater ( Func enableBeta, IEventAggregator eventBus, IProcessManager processManager, IFileDownloader downloader, IMediator mediator, ExportFactory webClientFactory, IRestarter restarter ) : System
UninstallSingleExe ( ) : bool

Private Methods

Méthode Description
Apply ( IAbsoluteFilePath exePath = null ) : bool
ApplyMSI ( ) : bool
ApplySingleExeMode ( IAbsoluteFilePath exePath ) : bool
ApplyUpdateIfExists ( IAbsoluteFilePath exePath ) : Task
CheckForUpdateInternal ( ) : Task
Cleanup ( ) : void
CleanupDest ( ) : void
CleanupInfo ( ) : void
CleanupLegacyRegistry ( ) : void
CreateShortcut ( IAbsoluteDirectoryPath destinationPath, IAbsoluteFilePath installExe ) : void
DeleteApplicationShortcuts ( ) : void
DownloadAndProcessVersion ( IWebClient checkForUpdateClient, Uri uri ) : Task
DownloadUpdate ( VersionCheckCompleteEventArgs a ) : System.Threading.Tasks.Task
GetAppLocalVersion ( IAbsoluteFilePath exePath ) : System.Version
GetApplyMsiParameters ( ) : string
GetLocalPath ( ) : string
GetLocalProduct ( ) : string
GetLocalRegVersion ( ) : System.Version
GetUninstallParameters ( ) : string
GetVersionCheckUri ( bool beta = false ) : Uri
InstallToProgramFiles ( IAbsoluteFilePath exeFile ) : bool
OnComplete ( string newVersion, string newProductCode, string hash, bool isNew, bool isSameProductCode ) : VersionCheckCompleteEventArgs
PublishDomainEvent ( IAsyncNotification evt ) : void
PublishDomainEvent ( INotification evt ) : void
RegisterLocalAppKeys ( IAbsoluteFilePath exePath ) : void
TryCheckForUpdate ( ) : System.Threading.Tasks.Task
TryCheckForUpdate ( IWebClient checkForUpdateClient, Uri uri ) : Task
TryDownloadUpdate ( VersionCheckCompleteEventArgs a, string filePath ) : System.Threading.Tasks.Task
TryGetVersionFromFile ( IAbsoluteFilePath exePath ) : System.Version
TryParseVersion ( string version ) : System.Version
TryParseVersionInfo ( ) : VersionCheckCompleteEventArgs
TryRunUpdater ( IAbsoluteFilePath executable ) : bool
TryUninstallLegacyMSI ( string parameters ) : bool
UninstallLegacyMSI ( ) : bool
VersionCheckerComplete ( VersionCheckCompleteEventArgs args ) : System.Threading.Tasks.Task

Method Details

ApplyInstallIfRequired() public méthode

public ApplyInstallIfRequired ( IAbsoluteFilePath exePath ) : bool
exePath IAbsoluteFilePath
Résultat bool

CheckForUpdate() public méthode

public CheckForUpdate ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

ExistsAndIsValid() public méthode

public ExistsAndIsValid ( IAbsoluteFilePath exePath ) : bool
exePath IAbsoluteFilePath
Résultat bool

GetLocalVersion() public méthode

public GetLocalVersion ( ) : System.Version
Résultat System.Version

IsInstalled() public méthode

public IsInstalled ( ) : bool
Résultat bool

IsLegacyInstalled() public méthode

public IsLegacyInstalled ( ) : bool
Résultat bool

IsLocalUpdate() public méthode

public IsLocalUpdate ( string exePath ) : bool
exePath string
Résultat bool

PerformSelfUpdate() public méthode

public PerformSelfUpdate ( string action = SelfUpdaterCommands.UpdateCommand ) : bool
action string
Résultat bool

ProgramApplyUpdateIfExists() public méthode

public ProgramApplyUpdateIfExists ( IAbsoluteFilePath exePath ) : Task
exePath IAbsoluteFilePath
Résultat Task

SelfUpdater() public méthode

public SelfUpdater ( Func enableBeta, IEventAggregator eventBus, IProcessManager processManager, IFileDownloader downloader, IMediator mediator, ExportFactory webClientFactory, IRestarter restarter ) : System
enableBeta Func
eventBus IEventAggregator
processManager IProcessManager
downloader IFileDownloader
mediator IMediator
webClientFactory ExportFactory
restarter IRestarter
Résultat System

UninstallSingleExe() public méthode

public UninstallSingleExe ( ) : bool
Résultat bool

Property Details

PlayExecutable public_oe static_oe property

public static string PlayExecutable
Résultat string