diff options
Diffstat (limited to 'MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs b/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs index 7ab574547..9dc0eb85c 100644 --- a/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs +++ b/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs @@ -21,10 +21,15 @@ namespace MediaBrowser.Common.Implementations.Updates // 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 tempUpdater = Path.Combine(Path.GetTempPath(), UpdaterExe); var product = app == MBApplication.MBTheater ? "mbt" : "server"; - File.Copy(source, target, true); - Process.Start(target, string.Format("product={0} archive=\"{1}\" caller={2} pismo=false", product, archive, Process.GetCurrentProcess().Id)); + File.Copy(source, tempUpdater, true); + // 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); + source = Path.Combine(appPaths.ProgramSystemPath, "Ionic.Zip.dll"); + File.Copy(source, Path.Combine(Path.GetTempPath(), "Ionic.Zip.dll"), true); + Process.Start(tempUpdater, string.Format("product={0} archive=\"{1}\" caller={2} pismo=false", product, archive, Process.GetCurrentProcess().Id)); // That's it. The installer will do the work once we exit } |
