aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Updates
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-03-07 00:34:00 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-03-07 00:34:00 -0500
commit4f67fc4aefc11c1a4293227c70de922dbe03c652 (patch)
tree67af7ffa36b002969968e06467c624def3e97dc6 /MediaBrowser.Common/Updates
parent60545c433b7d383147adb57bb91e720c3b547054 (diff)
removed base kernel and ikernel
Diffstat (limited to 'MediaBrowser.Common/Updates')
-rw-r--r--MediaBrowser.Common/Updates/ApplicationUpdater.cs38
1 files changed, 0 insertions, 38 deletions
diff --git a/MediaBrowser.Common/Updates/ApplicationUpdater.cs b/MediaBrowser.Common/Updates/ApplicationUpdater.cs
deleted file mode 100644
index a796e1bd2d..0000000000
--- a/MediaBrowser.Common/Updates/ApplicationUpdater.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.IO;
-using MediaBrowser.Common.Configuration;
-using MediaBrowser.Common.Kernel;
-
-namespace MediaBrowser.Common.Updates
-{
- public enum MBApplication
- {
- MBServer,
- MBTheater
- }
-
- /// <summary>
- /// Update the specified application using the specified archive
- /// </summary>
- public class ApplicationUpdater
- {
- private const string UpdaterExe = "Mediabrowser.Installer.exe";
- 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 target = Path.Combine(Path.GetTempPath(), UpdaterExe);
- var product = app == MBApplication.MBTheater ? "mbt" : "server";
- File.Copy(source, target, true);
- Process.Start(UpdaterExe, string.Format("product={0} archive=\"{1}\" caller={2}", product, archive, Process.GetCurrentProcess().Id));
-
- // That's it. The installer will do the work once we exit
- }
- }
-}