C# Class SimpleEpub2.AutoUpdater.AutoUpdater

Provides application update support in C#
Datei anzeigen Open project: henryxrl/SimpleEpub2 Class Usage Examples

Public Methods

Method Description
AutoUpdater ( AutoUpdatable applicationInfo ) : System

Creates a new AutoUpdater object

DoUpdate ( System.Boolean auto ) : void

Checks for an update for the program passed. If there is an update, a dialog asking to download will appear

Private Methods

Method Description
DownloadUpdate ( AutoUpdateXml update ) : void

Downloads update and installs the update

UpdateApplication ( String tempFilePath, String currentPath, String newPath, String launchArgs ) : void

Hack to close program, delete original, move the new one to that location

bgWorker_DoWork ( object sender, DoWorkEventArgs e ) : void

Checks for/parses update.xml on server

bgWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

After the background worker is done, prompt to update if there is one

Method Details

AutoUpdater() public method

Creates a new AutoUpdater object
public AutoUpdater ( AutoUpdatable applicationInfo ) : System
applicationInfo AutoUpdatable
return System

DoUpdate() public method

Checks for an update for the program passed. If there is an update, a dialog asking to download will appear
public DoUpdate ( System.Boolean auto ) : void
auto System.Boolean
return void