I'm trying to put together a sample on how to modify web.config using
our tool to generate WiX source files and a NAnt build script to build
them. At this stage, I'm just trying to get the generated source to work
with the fragment I've written. When I call light.exe with the
lib_install.wixobj and WebConfigFragment.wixobj, I get the following
error:

        
C:\CVSRoot\core-services\ICE\Samples\Setup\Web.Config\WebConfigFragment.
wxs : error LGHT0112 : Unresolved reference to symbol
'CustomAction:SchedXmlFile' in section 'Fragment:WebConfigFragment'.

Here is my WebConfigFragment.wxs source:

        <Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi
<http://schemas.microsoft.com/wix/2003/01/wi> ">
         <Fragment Id="WebConfigFragment">
          <DirectoryRef Id='INSTALLDIR'>
           <Component Id="WebConfigXmlUpdateSample"
            Guid="64B8D0C8-BF62-4b71-937F-76E9A07131F7">
            <!-- 
            This fragment uses WiX's built in XML Custom Action 
            component to update web.config. The WiX tutorial covers the 
            use of the <XmlFile /> element at 
            http://www.tramontana.co.hu/wix/lesson5.php#5.11
<http://www.tramontana.co.hu/wix/lesson5.php#5.11>  
            
            This sample will add the following elements to the
web.config 
            under <configuration>
             <appSettings>
              <add key="Key1" value="Value1" />
             </appSettings>
            -->
            
            <!-- Create <appSettings> element -->
            <XmlFile Id="WebConfigAddAppSettings"
File="[INSTALLDIR]web.config" 
             Action="createElement" Name="appSettings" 
             ElementPath="//configuration" Sequence="1" />
         
            <!-- Create <add> element -->
            <XmlFile Id="WebConfigAddAppSettingsAdd"
File="[INSTALLDIR]web.config" 
             Action="createElement" Name="add" 
             ElementPath="//configuration/appSettings" Sequence="2" />
            
            <!-- Set the key attribute of <add /> -->
            <XmlFile Id="WebConfigAddAppSettingsAddKeyAttribute"
File="[INSTALLDIR]web.config" 
             Action="setValue" Name="key" Value="Key1" 
             ElementPath="//configuration/appSettings/add" Sequence="3"
/>
            
            <!-- Set the value attribute of <add /> -->
            <XmlFile Id="WebConfigAddAppSettingsAddValueAttribute"
File="[INSTALLDIR]web.config" 
             Action="setValue" Name="value" Value="Value1" 
             ElementPath="//configuration/appSettings/add" Sequence="4"
/>
            
           </Component>
          </DirectoryRef>
         </Fragment>
        </Wix>

What am I missing here?
 
Thanks!
Rory
 
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to