aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-03-12 15:18:12 -0400
committerLukePulverenti <luke.pulverenti@gmail.com>2013-03-12 15:18:12 -0400
commit10879209ff5c8c40fe43c93bfcd92b87bcdccc58 (patch)
treeafa2281ab32f56e4eda741657a04ef3e5155b47b /MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs
parentb92db91a4389e8a1bf002c65e9e7f11d57dd8d2b (diff)
parent36e4e8f40235d51c71261585d29d82d9e8ed27c1 (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs')
-rw-r--r--MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs b/MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs
index 5cbd2dd9e..5870a8ed5 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 us
RemoveUninstall();
+ // Remove pismo
+ try
+ {
+ UnInstallPismo();
+ }
+ catch
+ {
+ // No biggie - maybe they uninstalled it themselves
+ }
+
// and done
lblHeading.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()
{