Merge pull request 'Fix a very rare edge case of someone running Windows on a non-C: drive letter' (#71) from DrakiaXYZ/SPT-AKI-Installer:feat-non-standard-windows into master
Reviewed-on: CWX/SPT-AKI-Installer#71 LGTM!!
This commit is contained in:
commit
68b895786b
@ -33,7 +33,8 @@ public class Net8PreCheck : PreCheckBase
|
||||
|
||||
try
|
||||
{
|
||||
var result = ProcessHelper.RunAndReadProcessOutputs(@"C:\Program Files\dotnet\dotnet.exe", "--list-runtimes");
|
||||
var programFiles = Environment.ExpandEnvironmentVariables("%ProgramW6432%");
|
||||
var result = ProcessHelper.RunAndReadProcessOutputs($@"{programFiles}\dotnet\dotnet.exe", "--list-runtimes");
|
||||
|
||||
if (!result.Succeeded)
|
||||
{
|
||||
|
@ -33,7 +33,8 @@ public class NetCore6PreCheck : PreCheckBase
|
||||
|
||||
try
|
||||
{
|
||||
var result = ProcessHelper.RunAndReadProcessOutputs(@"C:\Program Files\dotnet\dotnet.exe", "--list-runtimes");
|
||||
var programFiles = Environment.ExpandEnvironmentVariables("%ProgramW6432%");
|
||||
var result = ProcessHelper.RunAndReadProcessOutputs($@"{programFiles}\dotnet\dotnet.exe", "--list-runtimes");
|
||||
|
||||
if (!result.Succeeded)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user