public async Task FullUninstall() { var applyReleases = new ApplyReleasesImpl(rootAppDirectory); await acquireUpdateLock(); await applyReleases.FullUninstall(); }
public void CreateShortcutsForExecutable(string exeName, ShortcutLocation locations, bool updateOnly, string programArguments = null, string icon = null) { var installHelpers = new ApplyReleasesImpl(RootAppDirectory); installHelpers.CreateShortcutsForExecutable(exeName, locations, updateOnly, programArguments, icon); }
public async Task FullInstall(bool silentInstall, ProgressSource progress) { var partialProgress = new Action <int, int, int>((p, offset, ofTotalProgress) => { progress.Raise(offset + (int)((double)p * (double)ofTotalProgress / 100.0)); }); progress.RaiseCommand("Uninstalling current version..."); UninstallOldInstallerIfFound(); partialProgress(100, 0, 15); progress.RaiseCommand("Installing VC redists..."); InstallRedists(); partialProgress(100, 15, 15); progress.RaiseCommand("Extracting Fuse..."); var updateInfo = await CheckForUpdate(); await DownloadReleases(updateInfo.ReleasesToApply); var applyReleases = new ApplyReleasesImpl(rootAppDirectory); await acquireUpdateLock(); await applyReleases.ApplyReleases(updateInfo, silentInstall, true, (p) => partialProgress(p, 30, 70)); }
public async Task<string> ApplyReleases(UpdateInfo updateInfo, Action<int> progress = null) { var applyReleases = new ApplyReleasesImpl(rootAppDirectory); await acquireUpdateLock(); return await applyReleases.ApplyReleases(updateInfo, false, false, progress); }
public async Task<string> ApplyReleases(UpdateInfo updateInfo, Action<int> progress = null) { var applyReleases = new ApplyReleasesImpl(applicationName, rootAppDirectory); await acquireUpdateLock(); return await applyReleases.ApplyReleases(updateInfo, false, false, progress); }
public async Task FullUninstall() { var applyReleases = new ApplyReleasesImpl(rootAppDirectory); await acquireUpdateLock(); this.KillAllExecutablesBelongingToPackage(); await applyReleases.FullUninstall(); }
public async Task FullInstall(bool silentInstall = false, Action<int> progress = null) { var updateInfo = await CheckForUpdate(); await DownloadReleases(updateInfo.ReleasesToApply); var applyReleases = new ApplyReleasesImpl(rootAppDirectory); await acquireUpdateLock(); await applyReleases.ApplyReleases(updateInfo, silentInstall, true, progress); }
public async Task FullInstall(bool silentInstall = false) { var updateInfo = await CheckForUpdate(); await DownloadReleases(updateInfo.ReleasesToApply); var applyReleases = new ApplyReleasesImpl(applicationName, rootAppDirectory); await acquireUpdateLock(); await applyReleases.ApplyReleases(updateInfo, silentInstall, true); }
public async Task FullInstall(bool silentInstall = false, Action<int> progress = null) { var updateInfo = await CheckForUpdate(intention: UpdaterIntention.Install); await DownloadReleases(updateInfo.ReleasesToApply); var applyReleases = new ApplyReleasesImpl(rootAppDirectory); await acquireUpdateLock(); await applyReleases.ApplyReleases(updateInfo, silentInstall, true, progress); }
public async Task FullInstall(bool silentInstall, ProgressSource progress) { var partialProgress = new Action<int, int, int>((p, offset, ofTotalProgress) => { progress.Raise(offset + (int)((double)p * (double)ofTotalProgress / 100.0)); }); progress.RaiseCommand("Uninstalling current version..."); UninstallOldInstallerIfFound(); partialProgress(100, 0, 15); progress.RaiseCommand("Installing VC redists..."); InstallRedists(); partialProgress(100, 15, 15); progress.RaiseCommand("Extracting Fuse..."); var updateInfo = await CheckForUpdate(); await DownloadReleases(updateInfo.ReleasesToApply); var applyReleases = new ApplyReleasesImpl(rootAppDirectory); await acquireUpdateLock(); await applyReleases.ApplyReleases(updateInfo, silentInstall, true, (p) => partialProgress(p, 30, 70)); }
public void RemoveShortcutsForExecutable(string exeName, ShortcutLocation locations) { var installHelpers = new ApplyReleasesImpl(applicationName, rootAppDirectory); installHelpers.RemoveShortcutsForExecutable(exeName, locations); }
public void CreateShortcutsForExecutable(string exeName, ShortcutLocation locations, bool updateOnly) { var installHelpers = new ApplyReleasesImpl(applicationName, rootAppDirectory); installHelpers.CreateShortcutsForExecutable(exeName, locations, updateOnly); }
public void RemoveShortcutsForExecutable(string exeName, ShortcutLocation locations) { var installHelpers = new ApplyReleasesImpl(rootAppDirectory); installHelpers.RemoveShortcutsForExecutable(exeName, locations); }
public Dictionary <ShortcutLocation, ShellLink> GetShortcutsForExecutable(string exeName, ShortcutLocation locations, string programArguments = null) { var installHelpers = new ApplyReleasesImpl(rootAppDirectory); return(installHelpers.GetShortcutsForExecutable(exeName, locations, programArguments)); }
public void CreateShortcutsForExecutable(string exeName, ShortcutLocation locations, bool updateOnly, string programArguments = null, string icon = null) { var installHelpers = new ApplyReleasesImpl(rootAppDirectory); installHelpers.CreateShortcutsForExecutable(exeName, locations, updateOnly, programArguments, icon); }
public Dictionary<ShortcutLocation, ShellLink> GetShortcutsForExecutable(string exeName, ShortcutLocation locations, string programArguments = null) { var installHelpers = new ApplyReleasesImpl(rootAppDirectory); return installHelpers.GetShortcutsForExecutable(exeName, locations, programArguments); }
public IList<ShellLink> GetShortcutsForExecutable(string exeName, ShortcutLocation locations, bool updateOnly) { var installHelpers = new ApplyReleasesImpl(rootAppDirectory); return installHelpers.GetShortcutsForExecutable(exeName, locations, updateOnly); }