From 71223ed1a8de3e155c7e0df251c5f19f5263d024 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Mon, 15 Apr 2013 17:27:24 -0400 Subject: Update ApplicationUpdater --- MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.Common.Implementations') diff --git a/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs b/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs index 9dc0eb85c..6c2aa2f5c 100644 --- a/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs +++ b/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs @@ -15,15 +15,19 @@ namespace MediaBrowser.Common.Implementations.Updates /// public class ApplicationUpdater { - private const string UpdaterExe = "Mediabrowser.Installer.exe"; + private const string UpdaterExe = "Mediabrowser.Updater.exe"; + private const string UpdaterDll = "Mediabrowser.InstallUtil.dll"; public void UpdateApplication(MBApplication app, IApplicationPaths appPaths, string archive) { // Use our installer passing it the specific archive // We need to copy to a temp directory and execute it there var source = Path.Combine(appPaths.ProgramSystemPath, UpdaterExe); var tempUpdater = Path.Combine(Path.GetTempPath(), UpdaterExe); - var product = app == MBApplication.MBTheater ? "mbt" : "server"; File.Copy(source, tempUpdater, true); + source = Path.Combine(appPaths.ProgramSystemPath, UpdaterDll); + var tempUpdaterDll = Path.Combine(Path.GetTempPath(), UpdaterDll); + File.Copy(source, tempUpdaterDll, true); + var product = app == MBApplication.MBTheater ? "mbt" : "server"; // Our updater needs SS and ionic source = Path.Combine(appPaths.ProgramSystemPath, "ServiceStack.Text.dll"); File.Copy(source, Path.Combine(Path.GetTempPath(), "ServiceStack.Text.dll"), true); -- cgit v1.2.3