This is a clarification required to the existing post mentioned below
How to declare an Inno Setup preprocessor variable by reading from a file
Reading value fro
The relative paths in ReadIni
are resolved to the current working directory, what particularly in Inno Setup IDE is not the script directory.
Use absolute paths by using SourcePath
predefined variable:
#define AppVer ReadIni(SourcePath + "\common\GlobalConfig.ini", "Productname", "Product")
For FileOpen
ISPP does that automatically, but not for ReadIni
.
While not your case, another possibility is that there's something wrong with the INI file. It has to be UTF-8/ASCII without BOM or UTF-16 LE (with or without BOM).