From 22e51703cdbb4ab912767a6d9b16f46d1045e751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger?= Date: Fri, 2 Oct 2015 17:14:30 +0200 Subject: [PATCH] Added MotioninJoy driver removal to Clean Wipe Utility --- ScpCleanWipe/MainWindow.xaml.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ScpCleanWipe/MainWindow.xaml.cs b/ScpCleanWipe/MainWindow.xaml.cs index 7396b57a..4bc33318 100644 --- a/ScpCleanWipe/MainWindow.xaml.cs +++ b/ScpCleanWipe/MainWindow.xaml.cs @@ -27,6 +27,12 @@ public partial class MainWindow : Window public MainWindow() { InitializeComponent(); + + AppDomain.CurrentDomain.UnhandledException += (sender, args) => + { + MessageBox.Show(((Exception) args.ExceptionObject).Message, "Exception", + MessageBoxButton.OK, MessageBoxImage.Error); + }; } #region Windows Service Helpers @@ -124,6 +130,12 @@ await Task.Run(() => DrvStore.DeletePackage(entry, true); } + foreach (var entry in storeEntries.Where(dse => dse.DriverPkgProvider.Contains("MotioninJoy"))) + { + Log.InfoFormat("Removing package from driver store: {0} by {1}", entry.DriverPublishedName, entry.DriverPkgProvider); + DrvStore.DeletePackage(entry, true); + } + #endregion #region Driver uninstallation