The Free Software Media System - Server Backend & API
Add pismo to installer and uninstaller
Eric Reed36e4e8f40235
diff --git a/MediaBrowser.Installer/MainWindow.xaml.cs b/MediaBrowser.Installer/MainWindow.xaml.csindex 22548a3559..eddfdccc72 100644--- a/MediaBrowser.Installer/MainWindow.xaml.cs+++ b/MediaBrowser.Installer/MainWindow.xaml.cs@@ -249,6 +249,17 @@ namespace MediaBrowser.Installerreturn;}+ // Install Pismo+ try+ {+ InstallPismo();+ }+ catch (Exception e)+ {+ SystemClose("Error Installing Pismo - "+e.GetType().FullName+"\n\n"+e.Message);+ return;+ }+// And runtry{@@ -264,6 +275,17 @@ namespace MediaBrowser.Installer}+ private void InstallPismo()+ {+ // Kick off the Pismo installer and wait for it to end+ var pismo = new Process();+ pismo.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;+ pismo.StartInfo.FileName = Path.Combine(RootPath, "Pismo", "pfminst.exe");+ pismo.StartInfo.Arguments = "install";+ pismo.Start();+ pismo.WaitForExit();+ }+protected async Task<PackageVersionInfo> GetPackageVersion(){trydiff --git a/MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs b/MediaBrowser.Uninstaller.Execute/MainWindow.xaml.csindex 5cbd2dd9e0..5870a8ed58 100644--- a/MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs+++ b/MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs@@ -198,12 +198,33 @@ namespace MediaBrowser.Uninstaller.Execute// Remove reference to usRemoveUninstall();+ // Remove pismo+ try+ {+ UnInstallPismo();+ }+ catch+ {+ // No biggie - maybe they uninstalled it themselves+ }+// and donelblHeading.Content = string.Format("Media Browser {0} Uninstalled.", Product);btnUninstall.Visibility = Visibility.Hidden;btnFinished.Visibility = Visibility.Visible;}+ private void UnInstallPismo()+ {+ // Kick off the Pismo uninstaller and wait for it to end+ var pismo = new Process();+ pismo.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;+ pismo.StartInfo.FileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "pfm.exe");+ pismo.StartInfo.Arguments = "uninstall pfm-license-mediabrowser.txt";+ pismo.Start();+ pismo.WaitForExit();+ }+private void RemoveUninstall(){