Flow.Launcher/Flow.Launcher/Helper/WindowsMediaPlayerHelper.cs
2024-10-16 11:09:17 +08:00

11 lines
336 B
C#

using Microsoft.Win32;
namespace Flow.Launcher.Helper;
internal static class WindowsMediaPlayerHelper
{
internal static bool IsWindowsMediaPlayerInstalled()
{
using var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\MediaPlayer");
return key?.GetValue("Installation Directory") != null;
}
}