diff -r 0845adc5402e -r 4a9f8154d8f0 GUI/StartupManager.cs --- a/GUI/StartupManager.cs Tue Apr 27 18:43:56 2010 +0000 +++ b/GUI/StartupManager.cs Wed Apr 28 06:55:45 2010 +0000 @@ -55,7 +55,7 @@ try { scheduler = new TaskSchedulerClass(); scheduler.Connect(null, null, null, null); - } catch (Exception) { + } catch { scheduler = null; } @@ -101,7 +101,7 @@ ITaskFolder folder; try { folder = root.GetFolder("Open Hardware Monitor"); - } catch (FileNotFoundException) { + } catch (IOException) { folder = root.CreateFolder("Open Hardware Monitor", ""); } folder.RegisterTaskDefinition("Startup", definition, @@ -114,10 +114,10 @@ try { ITaskFolder folder = root.GetFolder("Open Hardware Monitor"); folder.DeleteTask("Startup", 0); - } catch (FileNotFoundException) { } + } catch (IOException) { } try { root.DeleteFolder("Open Hardware Monitor", 0); - } catch (FileNotFoundException) { } + } catch (IOException) { } } private void CreateRegistryRun() {