return correct result data

This commit is contained in:
IsWaffle 2024-01-08 21:29:59 -05:00
parent b7104168b8
commit 7283d247a0
3 changed files with 11 additions and 4 deletions

View File

@ -103,7 +103,14 @@ public static class ProcessHelper
}
};
try
{
proc.Start();
}
catch (Exception ex)
{
return ReadProcessResult.FromError(ex.Message);
}
proc.BeginOutputReadLine();
proc.BeginErrorReadLine();

View File

@ -37,7 +37,7 @@ public class NetCore6PreCheck : PreCheckBase
if (!result.Succeeded)
{
return PreCheckResult.FromError(result.Message);
return PreCheckResult.FromError(result.Message + "\n\nYou most likely don't have .net 6 installed", failedButtonText, failedButtonAction);
}
output = result.StdOut.Split("\r\n");

View File

@ -9,8 +9,8 @@
<PackageIcon>icon.ico</PackageIcon>
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
<Configurations>Debug;Release;TEST</Configurations>
<AssemblyVersion>2.26</AssemblyVersion>
<FileVersion>2.26</FileVersion>
<AssemblyVersion>2.27</AssemblyVersion>
<FileVersion>2.27</FileVersion>
<Company>SPT-AKI</Company>
</PropertyGroup>