Hello, developers!
I am trying to change xml file using wix passing some parameters to it,
using this sample: 

<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>
  <Product Id="88DC12AD-74D8-415a-AFE7-83C1BE05A3EB" Name="XmlFile Sample"
Language="1033" Version="1.0.0" Manufacturer="XmlFile">
    <Package Description="Sample showing XmlFile used in a WiX setup."
Comments="Sample showing XmlFile used in a WiX setup."
InstallerVersion="200" Compressed="yes" />

    <Media Id="1" Cabinet="Product.cab" EmbedCab="yes" />
   
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLLOCATION" Name="WiXSampl">
            <Component Id="ProgramComponent"
Guid="3D62CA0A-DE38-4687-95BE-1B200670E35A">
              <File Id="_F86C7B1F61C44480BEFA68A2D045D7BB"
Name="sample.config" Source="sample.config" Vital="yes" DiskId="1"/>

                          <util:XmlFile Id="ModifyServiceLocation" 
Action="setValue"
ElementPath="/configuration/appSettings/[EMAIL 
PROTECTED]'ServiceLocation']/@value"
File="[INSTALLLOCATION]\sample.config" Value="[SERVICELOCATION]"/>

            </Component>
        </Directory>
      </Directory>
    </Directory>

    <Feature Id="Complete" Title="XmlFile Sample" Level="1">
      <ComponentRef Id="ProgramComponent" />
    </Feature>

  </Product>
</Wix>

And use the following command line to link:
D:\temp\setup>"%wix_home%\light.exe" -out wixsetup.msi setup.wixobj
-cultures:en-us -ext "d:\temp\setup\WixUtilExtension.dll"

And I got the following link error: error LGHT0204 : ICE03: Invalid format
string; Table: XmlFile, Column: ElementPath, Key(s): ModifyServiceLocation

Light.exe didn't accepted the Id of XmlFile. Why?



-- 
View this message in context: 
http://www.nabble.com/Light-error-LGHT0204-Invalid-format-string-when-using-XmlFile-element-tf4887607.html#a13989616
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to