public static string GetClientInstallationDirectory() { object res = RegistryReader.ReadKeyAllViews(RegistryHive.LocalMachine, @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaPortal", "InstallPath"); if (res != null) { return(res.ToString()); } else { return(null); } }
public static string GetFromFilename(string filename, string defaultValue) { object mime = RegistryReader.ReadKey(Microsoft.Win32.RegistryHive.ClassesRoot, Path.GetExtension(filename), "Content Type"); return(mime == null ? defaultValue : mime.ToString()); }
public static string GetServerInstallationDirectory() { object res = RegistryReader.ReadKeyAllViews(RegistryHive.LocalMachine, @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaPortal TV Server", "InstallPath"); return(res != null?res.ToString() : null); }