C# Class Squirrel.UpdateManager

Inheritance: IUpdateManager, IEnableLogger
Afficher le fichier Open project: fusetools/Squirrel.Windows Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

ApplyReleases() public méthode

public ApplyReleases ( Squirrel.UpdateInfo updateInfo, Action progress = null ) : Task
updateInfo Squirrel.UpdateInfo
progress Action
Résultat Task

CheckForUpdate() public méthode

public CheckForUpdate ( bool ignoreDeltaUpdates = false, Action progress = null ) : Task
ignoreDeltaUpdates bool
progress Action
Résultat Task

CreateShortcutsForExecutable() public méthode

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
Résultat void

CreateUninstallerRegistryEntry() public méthode

public CreateUninstallerRegistryEntry ( ) : Task
Résultat Task

CreateUninstallerRegistryEntry() public méthode

public CreateUninstallerRegistryEntry ( string uninstallCmd, string quietSwitch ) : Task
uninstallCmd string
quietSwitch string
Résultat Task

CurrentlyInstalledVersion() public méthode

public CurrentlyInstalledVersion ( string executable = null ) : SemanticVersion
executable string
Résultat SemanticVersion

Dispose() public méthode

public Dispose ( ) : void
Résultat void

DownloadReleases() public méthode

public DownloadReleases ( IEnumerable releasesToDownload, Action progress = null ) : Task
releasesToDownload IEnumerable
progress Action
Résultat Task

FullInstall() public méthode

public FullInstall ( bool silentInstall, ProgressSource progress ) : Task
silentInstall bool
progress ProgressSource
Résultat Task

FullUninstall() public méthode

public FullUninstall ( ) : Task
Résultat Task

GetLocalAppDataDirectory() public static méthode

public static GetLocalAppDataDirectory ( string assemblyLocation = null ) : string
assemblyLocation string
Résultat string

GetShortcutsForExecutable() public méthode

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

GetUninstallStringForOldInstaller() public méthode

public GetUninstallStringForOldInstaller ( ) : IEnumerable
Résultat IEnumerable

KillAllExecutablesBelongingToPackage() public méthode

public KillAllExecutablesBelongingToPackage ( ) : void
Résultat void

RemoveShortcutsForExecutable() public méthode

public RemoveShortcutsForExecutable ( string exeName, ShortcutLocation locations ) : void
exeName string
locations ShortcutLocation
Résultat void

RemoveUninstallerRegistryEntry() public méthode

public RemoveUninstallerRegistryEntry ( ) : void
Résultat void

RestartApp() public static méthode

public static RestartApp ( string exeToStart = null, string arguments = null ) : void
exeToStart string
arguments string
Résultat void

UpdateManager() public méthode

public UpdateManager ( string urlOrPath, string applicationName = null, string rootDirectory = null, IFileDownloader urlDownloader = null ) : System
urlOrPath string
applicationName string
rootDirectory string
urlDownloader IFileDownloader
Résultat System