private bool InstallNewDeviceDriver() { try { DeviceDriver.Install(); } catch (Exception e) { ErrorMessage = HIDWiimote.ControlCenter.Properties.App.Updater_InstallDeviceDriverException + "\n\n" + e.Message; return(false); } bool InstallCheck = (DeviceDriverUninstallerRegistry.GetUninstallString().Length != 0); if (!InstallCheck) { ErrorMessage = HIDWiimote.ControlCenter.Properties.App.Updater_InstallDeviceDriverCheckFailed; return(false); } return(true); }