Wabiloo
14th March 2006 21:52 UTC
Dynamic list of files
Hi!
I'm building a NSIS installer that installs a program made of a number of files including an XML file.
That XML file contains a list of "dependencies", ie. other files that the program needs to work. The catch is that for different installers of the same program (for different clients), the list of dependencies is going to be different (the XML file is going to be different)
Is there any way to have NSIS (or a plugin) read that XML file, find the dependencies (via XPath of XSLT) and include them in the installer dynamically?
JasonFriday13
14th March 2006 23:35 UTC
Compiler plugins is still on the todo list. One solution is to include all files in one installer and do something similar to what I did in this thread (see last post for example).
kichik
16th March 2006 17:13 UTC
You can execute a program that'd convert the XML to a NSIS script using !system and the include the result using !include. That program can be xsltproc, if you want to use XSL.
The following wiki page contains a method to run a NSIS script at compile time, using this method:
http://nsis.sourceforge.net/Invoking...n_compile-time