GUI/StartupManager.cs
changeset 104 4a9f8154d8f0
parent 101 f8589379e32c
child 120 41dc766e28b8
     1.1 --- a/GUI/StartupManager.cs	Tue Apr 27 18:43:56 2010 +0000
     1.2 +++ b/GUI/StartupManager.cs	Wed Apr 28 06:55:45 2010 +0000
     1.3 @@ -55,7 +55,7 @@
     1.4        try {
     1.5          scheduler = new TaskSchedulerClass();
     1.6          scheduler.Connect(null, null, null, null);
     1.7 -      } catch (Exception) {
     1.8 +      } catch {
     1.9          scheduler = null;
    1.10        }
    1.11  
    1.12 @@ -101,7 +101,7 @@
    1.13        ITaskFolder folder;
    1.14        try {
    1.15          folder = root.GetFolder("Open Hardware Monitor");
    1.16 -      } catch (FileNotFoundException) {
    1.17 +      } catch (IOException) {
    1.18          folder = root.CreateFolder("Open Hardware Monitor", "");
    1.19        }
    1.20        folder.RegisterTaskDefinition("Startup", definition,
    1.21 @@ -114,10 +114,10 @@
    1.22        try {
    1.23          ITaskFolder folder = root.GetFolder("Open Hardware Monitor");
    1.24          folder.DeleteTask("Startup", 0);
    1.25 -      } catch (FileNotFoundException) { }
    1.26 +      } catch (IOException) { }
    1.27        try {
    1.28          root.DeleteFolder("Open Hardware Monitor", 0);
    1.29 -      } catch (FileNotFoundException) { }
    1.30 +      } catch (IOException) { }
    1.31      }
    1.32  
    1.33      private void CreateRegistryRun() {