We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43c74f0 commit 30d10bbCopy full SHA for 30d10bb
Flow.Launcher/Helper/WindowsMediaPlayerHelper.cs
@@ -1,11 +1,19 @@
1
using Microsoft.Win32;
2
3
namespace Flow.Launcher.Helper;
4
+
5
internal static class WindowsMediaPlayerHelper
6
{
7
internal static bool IsWindowsMediaPlayerInstalled()
8
- using var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\MediaPlayer");
9
- return key?.GetValue("Installation Directory") != null;
+ try
10
+ {
11
+ using var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\MediaPlayer");
12
+ return key?.GetValue("Installation Directory") != null;
13
+ }
14
+ catch
15
16
+ return false;
17
18
}
19
0 commit comments