I want to distribute the compiled installer with a separate INI file. The setup will load configurations (e.g. a version) from an INI file supplied to that particular client.
I have a ver.ini file in the same directory as the Setup.exe. It contains-
[Version]
Ver=0.0.11
I want to use it like-
#define AppVer ReadIni("ver.ini", "Version", "Ver", "unknown")
The Problem: Inno Setup is showing AppVer as unknown, rather than 0.0.11.
If I use a hard-coded file path for the ver.ini file, it works:
#define AppVer ReadIni("C:\Users\Admin\Desktop\ver.ini", "Version", "Ver", "unknown")
Since I'm distributing the Setup to my customers, I cannot use a hard-coded file path.
Any help is appreciated!