Hi there
I try to use GetIniString to read some app settings for installation but it does not work as expected.
Here is my ini file:
[Settings]
Platform=Desktop
Here is my code to read:
function GetPlatform(): string;
var temp : String;
begin
temp := ExpandConstant('{commonappdata}\MBB\Settings\LocalSettings.ini');
Result := GetIniString('Settings', 'Platform', 'None', temp);
end;
If the ini file does not have a leading CR odr Text, i always get 'None', if there is a line before [Settings] i get 'Desktop'
Is this a bug or a feature?
Thx Regards!
Günter