private string GetDefaultBrowserPath() { try { if (ApplicationSettings.appSettings().LogEvents) { CrossProductLogging.WriteEventLogFile("Begin GetDefaultBrowserPath"); } string key = @"htmlfile\shell\open\command"; RegistryKey registryKey = Registry.ClassesRoot.OpenSubKey(key, false); // get default browser path if (ApplicationSettings.appSettings().LogEvents) { CrossProductLogging.WriteEventLogFile("End GetDefaultBrowserPath"); } return ((string)registryKey.GetValue(null, null)).Split('"')[1]; } catch { return ""; } }