Skip to content
⌘ NSIS Forum Archive

How to load any XML files ?

3 posts

Bertrand_M23#

How to load any XML files ?

Hello,

i'm try to load and XML file.
I use the function : "nsisXML::load /NOUNLOAD "$EXEDIR\Filename.XML"
but i would like to open any XML file created in the exe directory : "*.xml".
From what i've seen, the command "*.xml" doesn't work ...
Please, can anybody tell me how to process ?

Thanks

Bertrand
{_trueparuex^}#
nsisXML doesn't probably support wildcard file names. But you can do the same thing with nsis by using FindFirst, FindNext and FindClose.

FindFirst $0 $1 "$EXEDIR\*.xml"
StrCmp $1 "" +2
nsisXML::load /NOUNLOAD "$EXEDIR\$1"
...