How do I install the minimum required Windows?

How do I install the minimum required version of Windows using $SETPEFLAG

? This can be done using editbin.exe "$(TargetPath)" /SUBSYSTEM:WINDOWS,5.01 /OSVERSION:5.1

eg.

+3


source to share


1 answer


You cannot install the minimum OS version using the directive {$SetPeFlags}

. You have to set it in the project options, and on the Linking page :

Project | Options | Delphi Compiler | Samples
Set the OS Version fields in the PE header to <major>. <minor>



The default is 5.0 (Windows 2000).

+6


source







All Articles