Skip to content
⌘ NSIS Forum Archive

Loading and manipulating the xml files from the specific folder on client machine.

3 posts

mmsajid#

Loading and manipulating the xml files from the specific folder on client machine.

Hi,

It would be great if some one can answer my below question.

I can able to load and manipulate the xml files if the xml file is present in the same directory as of the setup file.

I can do it like this..

${xml::LoadFile} "test_one.xml" $0
${xml::FindNextElement} "Childs" $0 $1
call GetXmlText #In this function set the xml text #to $9
${xml::CreateNode} $9 $3
${xml::InsertAfterNode} $3 $1
${xml::SaveFile} "" $0

Above code is perfectly working fine.

Question:
---------
If I want to load the xml file present in the C:\MyApp folder, how can I load this.

Thanks for reading the question.

Regards,
mmsajid#
Thanks for that.

Due to some reason it did not worked earlier...
May be I have done some thing wrong.

Now it is working fine... 🙂

Thank you.