Archive: NSIS ..option for XML


NSIS ..option for XML
hi there !!
i really search but not find :

in the file xml i search to put the line
"<entry name="LocaleFile" value="mylangage" />

if i use File open it seem to have bug, cause it's not like a WriteINIStr for winamp 2.X ;)

how to have something like WriteXMLStr ?


winampfr,

it's possible to use FileOpen, FileWrite to edit the XML. But you should not the position where the new line should come (eg, end of file). Please post some more information and the XML file, maybe we can advise you how to do it.

-greetz, Hn3.


in the file studio.xnf who are the equivalent of the previous winamp.ini
i must place the line

<entry name="LocaleFile" value="FR" />

but there is no entry point !!!


So, i'm not certain I understand what you want to do now. If you would post a file, we could see it with our own eyes...

Try this: create a loop, that reads the file till entry point (if you know where the entry should come). Write this to a temp file, add the entry and add the rest of the file. The delete the original file and rename the temp file. This should work to insert an entry, but you should know how to recognize the point to add the entry...

But if you post some file, we maybe could come up with something more simple using standard commands or something like that.

-Hn3.


again
here is a new post ;)
more precision in the next message (:confused:


again
here is a new post ;)


so the studio.xnf is available at
www.winampfr.com/temporaire/studio.xnf
(or the TXT equivalent attached with this post !)


I would like to create a loop ..something like
"Open studio.xnf find string "<entry name="last_skin"
write value="skinFR" />"
write <entry name="LocaleFile" value="FR" />
close file

without delete the end of file...
with the old "winamp.ini" it was so easy ..
Can you help me ? :p

You will be so greaaaaat
;)


Please be patient,

i'll write something.

-Hn3.


:up: no problem..i'm ready. Do what your wanna do :winamp:

but if someone else want to help me ,....don't hesitate :D


I'm helping you already,

that's what i wanted to inform you about. I do not have time to dio it today, maybe tomorrow, please be patient.

But actually, I think they should build this function into the PIMP installer for Winamp plugins as soon as WA3 will be launched officially...

But never mind, i'll try to some up with some nice loops... :)

-Hn3.


Hi WinampFr,

take a look at this code. It replaces the value for "last_skin" by "myskin". Easily adapted not difficult to implement in your own installer.

Good luck, greetz,
-Hendri.


ok i will see and recontact you ..THANKS:up: