Detect if hwi.exe deleted by windefender
MODIFY
WalletWasabi/Hwi/HwiProcessManager.cs
WalletWasabi/Hwi/HwiProcessManager.cs
@@ -85,6 +85,12 @@ namespace WalletWasabi.Hwi
public static async Task<JToken> SendCommandAsync(string command)
{
using (await AsyncLock.LockAsync())
+ {
+ if (!File.Exists(HwiPath))
+ {
+ throw new FileNotFoundException($"Hwi.exe not found here: {HwiPath}. Maybe it is removed by antivirus software!");
+ }
+
using (var process = Process.Start(
new ProcessStartInfo
{
@@ -158,6 +164,7 @@ namespace WalletWasabi.Hwi
//}
}
}
+ }
public static async Task EnsureHwiInstalledAsync(string dataDir, Network network)
{

Detect if hwi.exe deleted by windefender