The Free Software Media System - Server Backend & API
Playing nice doesn't work - kill MBT
Eric Reeda34c8c7cff0b
diff --git a/MediaBrowser.Installer/MainWindow.xaml.cs b/MediaBrowser.Installer/MainWindow.xaml.csindex 58d1d11ac4..abcf3a169f 100644--- a/MediaBrowser.Installer/MainWindow.xaml.cs+++ b/MediaBrowser.Installer/MainWindow.xaml.cs@@ -112,11 +112,11 @@ namespace MediaBrowser.Installer// Determine Package versionvar version = await GetPackageVersion();- lblStatus.Content = string.Format("Downloading {0} (version {1})...", FriendlyName, version.versionStr);// Now try and shut down the server if that is what we are installing and it is runningif (PackageName == "MBServer" && Process.GetProcessesByName("mediabrowser.serverapplication").Length != 0){+ lblStatus.Content = "Shutting Down Media Browser Server...";using (var client = new WebClient()){try@@ -139,9 +139,10 @@ namespace MediaBrowser.Installervar processes = Process.GetProcessesByName("mediabrowser.ui");if (processes.Length > 0){+ lblStatus.Content = "Shutting Down Media Browser Theater...";try{- processes[0].CloseMainWindow();+ processes[0].Kill();}catch (Exception ex){@@ -153,6 +154,7 @@ namespace MediaBrowser.Installer}// Download+ lblStatus.Content = string.Format("Downloading {0} (version {1})...", FriendlyName, version.versionStr);var archive = await DownloadPackage(version);dlAnimation.StopAnimation();prgProgress.Visibility = btnCancel.Visibility = Visibility.Hidden;diff --git a/MediaBrowser.Installer/MediaBrowser.Installer.csproj b/MediaBrowser.Installer/MediaBrowser.Installer.csprojindex 0fcb05202d..bc9a53936e 100644--- a/MediaBrowser.Installer/MediaBrowser.Installer.csproj+++ b/MediaBrowser.Installer/MediaBrowser.Installer.csproj@@ -29,7 +29,7 @@<PublisherName>Media Browser Team</PublisherName><SuiteName>Media Browser</SuiteName><OpenBrowserOnPublish>false</OpenBrowserOnPublish>- <ApplicationRevision>23</ApplicationRevision>+ <ApplicationRevision>25</ApplicationRevision><ApplicationVersion>0.1.1.%2a</ApplicationVersion><UseApplicationTrust>false</UseApplicationTrust><PublishWizardCompleted>true</PublishWizardCompleted>diff --git a/MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs b/MediaBrowser.Uninstaller.Execute/MainWindow.xaml.csindex 28eded0b94..934ff284bd 100644--- a/MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs+++ b/MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs@@ -83,7 +83,7 @@ namespace MediaBrowser.Uninstaller.Execute{using (var client = new WebClient()){- lblHeading.Content = "Shutting Down Server...";+ lblHeading.Content = "Shutting Down Media Browser Server...";try{client.UploadString("http://localhost:8096/mediabrowser/system/shutdown", "");@@ -104,9 +104,10 @@ namespace MediaBrowser.Uninstaller.Executevar processes = Process.GetProcessesByName("mediabrowser.ui");if (processes.Length > 0){+ lblHeading.Content = "Shutting Down Media Browser Theater...";try{- processes[0].CloseMainWindow();+ processes[0].Kill();}catch (Exception ex){