Ok,
I'll answer this myself.  It looks like I don't have to install the xml
config file to edit it.  I can just start doing stuff like
<!-- Edit web.config-->
<Component Id='Web_Config'
Guid='{F6D5CC56-D490-4083-A622-DCFAB6FDA989}'>
<XmlFile Id='WebCongifSettings1' File='[CONFIGFILEDIR]Web.Config'
Action='createElement' Sequence='1'
ElementPath="/configuration/configSections" Name="section" />
<XmlFile Id='WebCongifSettings2' File='[CONFIGFILEDIR]Web.Config'
Action='setValue' Sequence='2' Name='name' Value="log4net"
ElementPath="/configuration/configSections/section" />
.
.
.
and so on
</Component>
<!-- Finish Editing web.config-->


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Crouch,
John
Sent: Monday, September 11, 2006 4:04 PM
To: [email protected]
Subject: [WiX-users] Additions to existing web.config file

Folks,
As part of a Sharepoint web part installation I must add log4net
information into the Sharepoint web site web.config file.  Now, I know
how to
a) add a value to an existing key of a component I install
b) add an element of a component I install

How do I add something like this to an existing web.config file?

<configuration>
  <configSections>
    <section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net,
Version=1.2.9.0, Culture=neutral, PublicKeyToken=b32731d11ce58905"
requirePermission="false" />
  </configSections>
  ...
  <log4net>
    <appender name="RollingFileAppender"
type="log4net.Appender.RollingFileAppender">
      <file value="NOV_log.txt" />
      <appendToFile value="true" />
      <rollingStyle value="Size" />
      <maxSizeRollBackups value="10" />
      <maximumFileSize value="100KB" />
      <staticLogFileName value="true" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date [%thread] %-5level %logger -
%message%newline" />
      </layout>
    </appender>
    <appender name="EventLogAppender"
type="log4net.Appender.EventLogAppender">
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date [%thread] %-5level %logger -
%message%newline" />
      </layout>
    </appender>
    <logger name="Project
      <level value="DEBUG" />
      <appender-ref ref="EventLogAppender" />
    </logger>
  </log4net>
</configuration>

Thanks
John

------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to