C# Class Squirrel.UpdateManager

Inheritance: IUpdateManager, IEnableLogger
ファイルを表示 Open project: fusetools/Squirrel.Windows Class Usage Examples

Public Methods

Method Description
ApplyReleases ( Squirrel.UpdateInfo updateInfo, Action progress = null ) : Task
CheckForUpdate ( bool ignoreDeltaUpdates = false, Action progress = null ) : Task
CreateShortcutsForExecutable ( string exeName, ShortcutLocation locations, bool updateOnly, string programArguments = null, string icon = null ) : void
CreateUninstallerRegistryEntry ( ) : Task
CreateUninstallerRegistryEntry ( string uninstallCmd, string quietSwitch ) : Task
CurrentlyInstalledVersion ( string executable = null ) : SemanticVersion
Dispose ( ) : void
DownloadReleases ( IEnumerable releasesToDownload, Action progress = null ) : Task
FullInstall ( bool silentInstall, ProgressSource progress ) : Task
FullUninstall ( ) : Task
GetLocalAppDataDirectory ( string assemblyLocation = null ) : string
GetShortcutsForExecutable ( string exeName, ShortcutLocation locations, string programArguments = null ) : ShellLink>.Dictionary
GetUninstallStringForOldInstaller ( ) : IEnumerable
KillAllExecutablesBelongingToPackage ( ) : void
RemoveShortcutsForExecutable ( string exeName, ShortcutLocation locations ) : void
RemoveUninstallerRegistryEntry ( ) : void
RestartApp ( string exeToStart = null, string arguments = null ) : void
UpdateManager ( string urlOrPath, string applicationName = null, string rootDirectory = null, IFileDownloader urlDownloader = null ) : System

Private Methods

Method Description
InstallRedists ( ) : void
SetParent ( IntPtr hWndChild, IntPtr hWndNewParent ) : IntPtr
UninstallOldInstallerIfFound ( ) : void
acquireUpdateLock ( ) : Task
getApplicationName ( ) : string
getUpdateExe ( ) : string

Method Details

ApplyReleases() public method

public ApplyReleases ( Squirrel.UpdateInfo updateInfo, Action progress = null ) : Task
updateInfo Squirrel.UpdateInfo
progress Action
return Task

CheckForUpdate() public method

public CheckForUpdate ( bool ignoreDeltaUpdates = false, Action progress = null ) : Task
ignoreDeltaUpdates bool
progress Action
return Task

CreateShortcutsForExecutable() public method

public CreateShortcutsForExecutable ( string exeName, ShortcutLocation locations, bool updateOnly, string programArguments = null, string icon = null ) : void
exeName string
locations ShortcutLocation
updateOnly bool
programArguments string
icon string
return void

CreateUninstallerRegistryEntry() public method

public CreateUninstallerRegistryEntry ( ) : Task
return Task

CreateUninstallerRegistryEntry() public method

public CreateUninstallerRegistryEntry ( string uninstallCmd, string quietSwitch ) : Task
uninstallCmd string
quietSwitch string
return Task

CurrentlyInstalledVersion() public method

public CurrentlyInstalledVersion ( string executable = null ) : SemanticVersion
executable string
return SemanticVersion

Dispose() public method

public Dispose ( ) : void
return void

DownloadReleases() public method

public DownloadReleases ( IEnumerable releasesToDownload, Action progress = null ) : Task
releasesToDownload IEnumerable
progress Action
return Task

FullInstall() public method

public FullInstall ( bool silentInstall, ProgressSource progress ) : Task
silentInstall bool
progress ProgressSource
return Task

FullUninstall() public method

public FullUninstall ( ) : Task
return Task

GetLocalAppDataDirectory() public static method

public static GetLocalAppDataDirectory ( string assemblyLocation = null ) : string
assemblyLocation string
return string

GetShortcutsForExecutable() public method

public GetShortcutsForExecutable ( string exeName, ShortcutLocation locations, string programArguments = null ) : ShellLink>.Dictionary
exeName string
locations ShortcutLocation
programArguments string
return ShellLink>.Dictionary

GetUninstallStringForOldInstaller() public method

public GetUninstallStringForOldInstaller ( ) : IEnumerable
return IEnumerable

KillAllExecutablesBelongingToPackage() public method

public KillAllExecutablesBelongingToPackage ( ) : void
return void

RemoveShortcutsForExecutable() public method

public RemoveShortcutsForExecutable ( string exeName, ShortcutLocation locations ) : void
exeName string
locations ShortcutLocation
return void

RemoveUninstallerRegistryEntry() public method

public RemoveUninstallerRegistryEntry ( ) : void
return void

RestartApp() public static method

public static RestartApp ( string exeToStart = null, string arguments = null ) : void
exeToStart string
arguments string
return void

UpdateManager() public method

public UpdateManager ( string urlOrPath, string applicationName = null, string rootDirectory = null, IFileDownloader urlDownloader = null ) : System
urlOrPath string
applicationName string
rootDirectory string
urlDownloader IFileDownloader
return System