C# Class PurplePen.Updater

Exibir arquivo Open project: petergolde/PurplePen

Public Methods

Method Description
CheckForUpdates ( ) : void
DownloadAndInstall ( Uri downloadFrom, string fileName, bool exitToInstall ) : bool

Private Methods

Method Description
AskToDownload ( string versionNumber, string fileName ) : void
DeletePreviouslyDownloadedFiles ( ) : void
FindNonexistantFile ( string downloadedFile ) : string
GetDownloadDirectory ( ) : string
Install ( string downloadedInstallerFile, bool exitToInstall ) : bool
JsonEncode ( string s ) : string
versionCheckWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
versionCheckWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Method Details

CheckForUpdates() public static method

public static CheckForUpdates ( ) : void
return void

DownloadAndInstall() public static method

public static DownloadAndInstall ( Uri downloadFrom, string fileName, bool exitToInstall ) : bool
downloadFrom System.Uri
fileName string
exitToInstall bool
return bool