Skip to content

Commit 77a5d3e

Browse files
authored
Fix: Fixed an issue where HWiNFO64.exe wouldn't open (#15251)
1 parent 6cedb62 commit 77a5d3e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Files.App/Utils/Shell/LaunchHelper.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ private static async Task<bool> HandleApplicationLaunch(string application, stri
129129

130130
return true;
131131
}
132+
catch (Win32Exception ex) when (ex.NativeErrorCode == 50)
133+
{
134+
// ShellExecute return code 50 (ERROR_NOT_SUPPORTED) for some exes (#15179)
135+
return Win32Helper.RunPowershellCommand($"\"{application}\"", false);
136+
}
132137
catch (Win32Exception)
133138
{
134139
try

0 commit comments

Comments
 (0)