On 4/10/2021 5:27 am, Frederic Luc wrote:
> Hi if i try this, i receive the following:
>
> Compiler Error
> Unknown filename prefix " {ini:"
>
> What's wrong ?
Of course that can't possibly work. As the documentation clearly
indicates, {ini:...} is read at runtime and SourceDir is required at
compile time.
As Martijn pointed out, for *individual specific [Files] entries* you
can use {ini:...} in their Source provided that you also use the
'external' flag, which will copy a file from one place on the user's
machine to another at runtime. This is only rarely useful.
The main problem here is that you keep asking questions about specific
bits of code and never explain what you're actually trying to do. This
makes it very hard to give you any kind of actually useful answer.
Where is the ini file, is it on your development machine or is it on the
user's machine? Why are you trying to read a path from it to choose
where to find files to be installed? What purpose does it serve? Where
are these files located?