diff --git a/GUI/StartupManager.cs b/GUI/StartupManager.cs index b7fa66b..1318a2a 100644 --- a/GUI/StartupManager.cs +++ b/GUI/StartupManager.cs @@ -66,8 +66,12 @@ namespace OpenHardwareMonitor.GUI { startup = task != null; } catch (IOException) { startup = false; + } catch (UnauthorizedAccessException) { + scheduler = null; } - } else { + } + + if (scheduler == null) { RegistryKey key = Registry.CurrentUser.OpenSubKey(REGISTRY_RUN); startup = false; if (key != null) {