Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        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());
        }
Beispiel #3
0
        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);
        }