aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-15 17:38:24 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-15 17:38:24 -0400
commitb4c06b76c139c79fac33c05699ae3bbc0124ffdf (patch)
tree29edc51be480df4d59e74170324c00ae8a57cf53 /MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs
parent3a1317fd4fd0030c50ff7011a329ce689583d1b6 (diff)
parentc37825aa123ecc4e9b06a3c108f2cc1ee144a392 (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs')
-rw-r--r--MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs8
1 files changed, 6 insertions, 2 deletions
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
/// </summary>
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);