C# Класс Squirrel.UpdateManager

Наследование: IUpdateManager, IEnableLogger
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
InstallRedists ( ) : void
SetParent ( IntPtr hWndChild, IntPtr hWndNewParent ) : IntPtr
UninstallOldInstallerIfFound ( ) : void
acquireUpdateLock ( ) : Task
getApplicationName ( ) : string
getUpdateExe ( ) : string

Описание методов

ApplyReleases() публичный Метод

public ApplyReleases ( Squirrel.UpdateInfo updateInfo, Action progress = null ) : Task
updateInfo Squirrel.UpdateInfo
progress Action
Результат Task

CheckForUpdate() публичный Метод

public CheckForUpdate ( bool ignoreDeltaUpdates = false, Action progress = null ) : Task
ignoreDeltaUpdates bool
progress Action
Результат Task

CreateShortcutsForExecutable() публичный Метод

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
Результат void

CreateUninstallerRegistryEntry() публичный Метод

public CreateUninstallerRegistryEntry ( ) : Task
Результат Task

CreateUninstallerRegistryEntry() публичный Метод

public CreateUninstallerRegistryEntry ( string uninstallCmd, string quietSwitch ) : Task
uninstallCmd string
quietSwitch string
Результат Task

CurrentlyInstalledVersion() публичный Метод

public CurrentlyInstalledVersion ( string executable = null ) : SemanticVersion
executable string
Результат SemanticVersion

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

DownloadReleases() публичный Метод

public DownloadReleases ( IEnumerable releasesToDownload, Action progress = null ) : Task
releasesToDownload IEnumerable
progress Action
Результат Task

FullInstall() публичный Метод

public FullInstall ( bool silentInstall, ProgressSource progress ) : Task
silentInstall bool
progress ProgressSource
Результат Task

FullUninstall() публичный Метод

public FullUninstall ( ) : Task
Результат Task

GetLocalAppDataDirectory() публичный статический Метод

public static GetLocalAppDataDirectory ( string assemblyLocation = null ) : string
assemblyLocation string
Результат string

GetShortcutsForExecutable() публичный Метод

public GetShortcutsForExecutable ( string exeName, ShortcutLocation locations, string programArguments = null ) : ShellLink>.Dictionary
exeName string
locations ShortcutLocation
programArguments string
Результат ShellLink>.Dictionary

GetUninstallStringForOldInstaller() публичный Метод

public GetUninstallStringForOldInstaller ( ) : IEnumerable
Результат IEnumerable

KillAllExecutablesBelongingToPackage() публичный Метод

public KillAllExecutablesBelongingToPackage ( ) : void
Результат void

RemoveShortcutsForExecutable() публичный Метод

public RemoveShortcutsForExecutable ( string exeName, ShortcutLocation locations ) : void
exeName string
locations ShortcutLocation
Результат void

RemoveUninstallerRegistryEntry() публичный Метод

public RemoveUninstallerRegistryEntry ( ) : void
Результат void

RestartApp() публичный статический Метод

public static RestartApp ( string exeToStart = null, string arguments = null ) : void
exeToStart string
arguments string
Результат void

UpdateManager() публичный Метод

public UpdateManager ( string urlOrPath, string applicationName = null, string rootDirectory = null, IFileDownloader urlDownloader = null ) : System
urlOrPath string
applicationName string
rootDirectory string
urlDownloader IFileDownloader
Результат System