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

Inheritance: ISelfUpdater, IEnableLogging, IApplicationService
Show file Open project: SIXNetworks/withSIX.Desktop

Public Properties

Property Type Description
PlayExecutable string

Public Methods

Method 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

Method 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 method

public ApplyInstallIfRequired ( IAbsoluteFilePath exePath ) : bool
exePath IAbsoluteFilePath
return bool

CheckForUpdate() public method

public CheckForUpdate ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

ExistsAndIsValid() public method

public ExistsAndIsValid ( IAbsoluteFilePath exePath ) : bool
exePath IAbsoluteFilePath
return bool

GetLocalVersion() public method

public GetLocalVersion ( ) : System.Version
return System.Version

IsInstalled() public method

public IsInstalled ( ) : bool
return bool

IsLegacyInstalled() public method

public IsLegacyInstalled ( ) : bool
return bool

IsLocalUpdate() public method

public IsLocalUpdate ( string exePath ) : bool
exePath string
return bool

PerformSelfUpdate() public method

public PerformSelfUpdate ( string action = SelfUpdaterCommands.UpdateCommand ) : bool
action string
return bool

ProgramApplyUpdateIfExists() public method

public ProgramApplyUpdateIfExists ( IAbsoluteFilePath exePath ) : Task
exePath IAbsoluteFilePath
return Task

SelfUpdater() public method

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
return System

UninstallSingleExe() public method

public UninstallSingleExe ( ) : bool
return bool

Property Details

PlayExecutable public static property

public static string PlayExecutable
return string