aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Installer/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-03-13 08:51:33 -0400
committerEric Reed <ebr@mediabrowser3.com>2013-03-13 08:51:33 -0400
commit13140003a66d5ebd24874bde8ae3edafd92d421a (patch)
treebc5c097034d8f605211c3e7bd8f120670d045b6c /MediaBrowser.Installer/MainWindow.xaml.cs
parentff55da9029f8b18343dbf65ca2afa643b6e0877f (diff)
Don't install pismo during update #47
Diffstat (limited to 'MediaBrowser.Installer/MainWindow.xaml.cs')
-rw-r--r--MediaBrowser.Installer/MainWindow.xaml.cs21
1 files changed, 13 insertions, 8 deletions
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();