Old 11th February 2011, 22:09   #1
ssamuels_sv
Junior Member
 
Join Date: Jan 2011
Posts: 7
Thank you. I just figured that out and was going to say, never mind. Thanks for the quick reply. I tried inetc, but I'll take a look at NSISdl as well.
ssamuels_sv is offline   Reply With Quote
Old 11th May 2011, 17:49   #2
loyalp
Junior Member
 
Join Date: Jan 2011
Posts: 2
comments

I've just started using this plugin, and so far have it doing everything I need for inserting some new lines in a web.config file. I do not see to be able to figure out how to get a new comment inserted, however.

xml file is setup like:

<?xml version="1.0" ?>
<configuration>
<appSettings>
<add key="LogLevel" value="4" />
</appSettings>
</configuration>

I'm adding several new <add key= statements, but would also like to insert a comment at the same level.

Final product would be:

<?xml version="1.0" ?>
<configuration>
<appSettings>
<!--Some Comment-->
<add key="LogLevel" value="4" />
<add key="something" value="" />
<add key="something" value="" />
<add key="something" value="" />
<add key="something" value="" />
</appSettings>
</configuration>

I've tried:

code:

${xml::LoadFile} "$INSTDIR\Web.config" $0
${xml::RootElement} $0 $1
${xml::XPathNode} "/configuration/appSettings" $0
${xml::CreateNode} "<'!-- Some Comment--'/>" $4
${xml::InsertEndChild} $4 $5




and also ${xml::CreateNode} "<'!-- Some Comment--'/>" $4.

What am I missing here?
loyalp is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump