Skip to content
⌘ NSIS Forum Archive

XML editing in NSIS

10 posts

sumanto#

XML editing in NSIS

🙁 I am in bit of a soup and need help.

Is there any simple way of editing XML configuration files in NSIS? 🙄

Also, is there any way to add a task to the scheduled tasks during installation itself using NSIS?

Any help will be very welcome.

Thanks 👍
kichik#
Unless someone made an XML plugin and didn't tell us, there is no easy way of editing XML in NSIS.

I will check about that scheduled tasks and get back to you.
sala#
Originally posted by kichik
Unless someone made an XML plugin and didn't tell us, there is no easy way of editing XML in NSIS.

I will check about that scheduled tasks and get back to you.
Is there any progress with that xml plugin?
kichik#
One was never started as far as I know.

Sumanto, I am sorry about not getting back to you about the scheduled tasks. Here's a link that should help:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
sala#
To edit xml I use gsar by just executing it with command line (but this is realy dirty way!).
sealite#
Still no plugin ?
XML is going to replace (most of) registry in the near future. Most multi platform application are already using xml for storing configuration.
Joel#
I don't promise nothing nor good and stable one, but I'll work with the future plugin called xml.dll for NSIS.

My idea is only read the text between elements...
for example:

<element>nsis</element>
Should return nsis
what you thing?
Reading attributes can be pain in the touchi 😁, but ideas can be helpfull...
sealite#
Cool but i'll give you one example. I want to modify the path of the templates in Openoffice.org. Here it's a part of the config file.
As you can see it's not very easy to define the structure where to find this.

<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns😳or="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Common" oor😛ackage="org.openoffice.Office">
<node oor:name="Path">
<node oor:name="Current">
<prop oor:name="OfficeInstall" oor:type="xs:string">
<value>C:\Program Files\OpenOffice.org1.1.3</value>
</prop>
<prop oor:name="Template" oor:type="oor:string-list">
<value>file:///P:/templates</value>
</prop>
</node>
</node>