private bool RemoveOldDeviceDriver() { try { DeviceDriver.Uninstall(); } catch (Exception e) { ErrorMessage = HIDWiimote.ControlCenter.Properties.App.Updater_RemoveDeviceDriverException + "\n\n" + e.Message; return(false); } bool UninstallCheck = (DeviceDriverUninstallerRegistry.GetUninstallString().Length == 0); if (!UninstallCheck) { ErrorMessage = HIDWiimote.ControlCenter.Properties.App.Updater_RemoveDeviceDriverCheckFailed; return(false); } return(true); }