|
@@ -2893,7 +2893,7 @@ end;</pre></example>
|
|
begin
|
|
begin
|
|
try
|
|
try
|
|
// Get the system configuration
|
|
// Get the system configuration
|
|
- Result := ExecAndCaptureOutput(ExpandConstant('{cmd}'), '/k systeminfo', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode, Output);
|
|
|
|
|
|
+ Result := ExecAndCaptureOutput(ExpandConstant('{cmd}'), '/c systeminfo', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode, Output);
|
|
except
|
|
except
|
|
Result := False;
|
|
Result := False;
|
|
Log(GetExceptionMessage);
|
|
Log(GetExceptionMessage);
|