diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-13 10:01:18 -0400 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-13 10:01:18 -0400 |
| commit | 8405c17d25fcf2da0a710c76cdd6f9df6369d44a (patch) | |
| tree | 6e93483a47233c7d7133ca6130fc36f93ae15c91 | |
| parent | b94417b845de4bd5c8e0b2abeaa50958135c7878 (diff) | |
| parent | 13140003a66d5ebd24874bde8ae3edafd92d421a (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
| -rw-r--r-- | MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs | 2 | ||||
| -rw-r--r-- | MediaBrowser.Installer/MainWindow.xaml.cs | 21 |
2 files changed, 14 insertions, 9 deletions
diff --git a/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs b/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs index 00e232e44..7ab574547 100644 --- a/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs +++ b/MediaBrowser.Common.Implementations/Updates/ApplicationUpdater.cs @@ -24,7 +24,7 @@ namespace MediaBrowser.Common.Implementations.Updates var target = 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}", product, archive, Process.GetCurrentProcess().Id)); + Process.Start(target, 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 } diff --git a/MediaBrowser.Installer/MainWindow.xaml.cs b/MediaBrowser.Installer/MainWindow.xaml.cs index eddfdccc7..5ceccdf43 100644 --- a/MediaBrowser.Installer/MainWindow.xaml.cs +++ b/MediaBrowser.Installer/MainWindow.xaml.cs @@ -27,6 +27,7 @@ namespace MediaBrowser.Installer protected string TargetExe = "MediaBrowser.ServerApplication.exe"; protected string FriendlyName = "Media Browser Server"; protected string Archive = null; + protected bool InstallPismo = true; protected string RootPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MediaBrowser-Server"); protected bool SystemClosing = false; @@ -91,6 +92,7 @@ namespace MediaBrowser.Installer } Archive = args.GetValueOrDefault("archive", null); + if (args.GetValueOrDefault("pismo","true") == "false") InstallPismo = false; var product = args.GetValueOrDefault("product", null) ?? ConfigurationManager.AppSettings["product"] ?? "server"; PackageClass = (PackageVersionClass) Enum.Parse(typeof (PackageVersionClass), args.GetValueOrDefault("class", null) ?? ConfigurationManager.AppSettings["class"] ?? "Release"); @@ -250,14 +252,17 @@ namespace MediaBrowser.Installer } // Install Pismo - try - { - InstallPismo(); - } - catch (Exception e) + if (InstallPismo) { - SystemClose("Error Installing Pismo - "+e.GetType().FullName+"\n\n"+e.Message); - return; + try + { + PismoInstall(); + } + catch (Exception e) + { + SystemClose("Error Installing Pismo - "+e.GetType().FullName+"\n\n"+e.Message); + return; + } } // And run @@ -275,7 +280,7 @@ namespace MediaBrowser.Installer } - private void InstallPismo() + private void PismoInstall() { // Kick off the Pismo installer and wait for it to end var pismo = new Process(); |
