Archive: Use a parameter file only for compilation


Use a parameter file only for compilation
Hi,

I have a JSON file which contain some parameters (path, version, etc...).

Here my JSON file :


{
"version": "5.1",
"frameworks": {
"destination": [
"C:\\Toto\\Local",
"C:\\Apache2.2\\htdocs",
]
}
}


Then, I read this file with the plugin and NSIS know the file's destination.
Everything work on my computer...

But this file is useful only at compile time...Not at the installation.

So how to load this file at compile time ?
I try this :

!define /FILE JSON myFile.json


But it does'nt work...

Thanks a lot! Sorry for my poor English,

NSIS cannot parse JSON at compile-time, you must execute some external tool with !system...


Hi,

Thanks!

Does it possible with XML ?
Which tool can I use ?

Thanks,