I need to run a small program in the Windows Preinstallation Environment, my program works fine on v7 & v10, but crashes on v8.1.
Windows 8.1 ISO: https://www.microsoft.com/en-us/software-download/windows8
On the Windows Installer window, I press Shift+F10 to open CMD, then I run the program from there.
Here is the example code, I'm using Delphi 11.3 CE:
program Project3;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils;
begin
WriteLn('Test');
ReadLn;
end.
Here is the result if SysUtils is included:
Here is the result if SysUtils is not included, so I suspect the problem comes from the SysUtils unit.
I'm new to Delphi recently and don't have the ability to debug in this case. Please help, thanks for everything.