I'm having problems with the XmlFile custom action using Wix 3.0 where the 
installer says it fails to open the installed XML file. The installer is being 
run on a Windows Server 2003 machine with SP1.

In particular, I have something like the following:

      <Component Id="XMLConfig"  Guid="YOUR-GUID-HERE" DiskId="1">
        <File Id="Config.xml" Name="Config.xml" KeyPath="yes" />
        <util:XmlFile Id ="Config_Name" File="[INSTALLLOCATION]Config.xml" 
Action="setValue" ElementPath="//Config/Name" Value="[NAME]"/>
        <util:XmlFile Id ="Config_IPAddress" File="[INSTALLLOCATION]Config.xml" 
Action="setValue" ElementPath="//Config/IPAddress" Value="[IPADDRESS]"/>
      </Component>

The XML file is installed in the proper location and when it goes to use the 
custom action, it looks in the proper location for the file, but I get an error 
that causes the installation to abort. The error in the installation logfile 
looks like:

ExecXmlFile: Error 0x8007006e: failed to load XML file: 
C:\inetpub\MyDirectory\Config.xml

If I have filemon open, however, at the time the ExecXmlFile fails, it claims 
that the file READ request returned SUCCESS. The paths appear correct and if I 
leave out the XmlFile actions the file installs properly in the location 
expected.

Anyone have any ideas what's going wrong? My Config.xml looks like the 
following:

 <?xml version="1.0" encoding="utf-16"?>
<Config>
 <Name>servername</Name>
 <IPAddress>serverIP</IPAddress>
</Config>


Thanks for any assistance!

John



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to