Hi Im working with fpc 3.0.2
trying to check version of installer exe file (inno setup).
but when I try
function.....:string;
var info:TFileVersionInfo;
begin
info := TFileVersionInfo.Create(nil);
info.fileName:=Filename;
info.ReadFileInfo;
return:=info.VersionStrings.Values['ProductVersion'];
info.free;
end;
error saying .exe doest have available that info:
EResourceReaderNotFoundException with message cannot find resource reader for extension '.exe'
and if I try
info.getVersionSetting ... well it looks likeit doesnot exist that function.
Anyone has a tip?
thanks and regards