diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-12 15:18:12 -0400 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-12 15:18:12 -0400 |
| commit | 10879209ff5c8c40fe43c93bfcd92b87bcdccc58 (patch) | |
| tree | afa2281ab32f56e4eda741657a04ef3e5155b47b /MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs | |
| parent | b92db91a4389e8a1bf002c65e9e7f11d57dd8d2b (diff) | |
| parent | 36e4e8f40235d51c71261585d29d82d9e8ed27c1 (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.cs | 21 |
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() { |
