Quote:
Originally Posted by Prettyboy099
Thanks, I did not know.... In next update, I will fix it.....
|
No need to change. I reviewed it and found that it works that way too.
If you don't write the word
build in the System= key line, the default value from the winverbuild= key will be read (see red color part code below).
Code:
function GetSystemReq(Key, Section: String): Integer;
begin
case LowerCase(Key) of
'winvermajor' : Result := WindowsRequirimentsFromString(Section + 'SystemReq', Key, GetValInt(Section + 'SystemReq', Key, 0));
'winverminor' : Result := WindowsRequirimentsFromString(Section + 'SystemReq', Key, GetValInt(Section + 'SystemReq', Key, 0));
'winverbuild' : Result := WindowsRequirimentsFromString(Section + 'SystemReq', Key, GetValInt(Section + 'SystemReq', Key, 0));
'servicepack' : Result := WindowsRequirimentsFromString(Section + 'SystemReq', Key, GetValInt(Section + 'SystemReq', Key, 0));
'ram' : Result := Trunc(GetSizeBytes(GetValStr(Section + 'SystemReq', Key, ''), 0) / PowerK(1, POWER_MB));
'videoram' : Result := Trunc(GetSizeBytes(GetValStr(Section + 'SystemReq', Key, ''), 0) / PowerK(1, POWER_MB));
else
Result := GetValInt(Section + 'SystemReq', Key, 0);
end;
end;
SUGGESTION (Perhaps this will be useful in another project):
See what it looks like if you include the CIU title option.

>> Setup.ini changes:
Code:
[SetupTitle]
Left=56
Top=13
Font=cocogoose letterpress
Visible=1
[SetupTitleAR]
Left=56
Top=14
Font=cocogoose letterpress
Visible=1