Look in a verbose log file and check that your Component is actually being installed.
-----Original Message----- From: md5hans [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2008 00:35 To: wix-users@lists.sourceforge.net Subject: [WiX-users] XmlConfig (again) Sorry about reposting this question so soon but this is quite importent form me so I'll make a new try -------------------------------------------------------------------------------------------------- Hi! I'm trying to use XmlConig to modify an existing file on the computer. Below is a testconfiguration that I have started with to see if I can make XmlConfig to do want I want it to do. When I run the installtion no errors are reported, the dummy.xml is installed but the c:\temp\settings.xml is not modified. I think I have got the ElementPath right, I have tried using "XmlFile" with the same ElementPath on a file that is installed by the package and then the file is modified. I have logged the the installation and the XmlConfig is called. Has any one any idea of what i'm doing wrong? Kind refards Hans Wix xml: <?xml version="1.0" encoding="Windows-1252"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> <Product Name="Foobar 1.0" Id="15631406-D933-456b-AE2C-EC50894CC31E" Language="1033" Codepage="1252" Version="1.0.0" Manufacturer="Acme Ltd." UpgradeCode="A72070F6-AD0F-4dec-8723-66D94A18A7ED"> <Package Keywords="Installer" Description="Acme's Foobar 1.0 Installer" Comments="Foobar is a registered trademark of Acme Ltd." Manufacturer="Acme Ltd." InstallerVersion="100" Languages="1033" Compressed="yes" SummaryCodepage="1252"/> <Media Id="1" Cabinet="Sample.cab" EmbedCab="yes" DiskPrompt="CD-ROM #1"/> <Property Id="DiskPrompt" Value="Acme's Foobar 1.0 Installation [1]"/> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder" Name="PFiles"> <Directory Id="Acme" Name="Acme"> <Directory Id="INSTALLDIR" Name="Foobar10000"> <Component Id="Dummy" Guid="F72070F6-AD0F-AAAA-8723-66D94A18A7ED"> <File Id="XmlSettings" Name="dummy.xml" DiskId="1" Source="settings.xml" Vital="yes"/> </Component> </Directory> </Directory> </Directory> </Directory> <Component Id="CustomAction.ModifyPacketXml" KeyPath="yes" Guid="F72070F6-AD0F-4DEC-8723-66D94A18A7ED" Directory="TARGETDIR"> <util:XmlConfig Id="XmlSettings1" File="C:\temp\settings.xml" Action="create" Name="InfoType" ElementPath="//Categories/[EMAIL PROTECTED]'VectorMap'[\]]/InfoTypes" On="install" Sequence="1"/> <util:XmlConfig Id="XmlSettings2" File="C:\temp\settings.xml" Name="Name" Value="Roads" ElementPath="//Categories/Category/InfoTypes/InfoType[\[]not(@Name) and not(@RefersTo)[\]]" On="install" Sequence="2"/> <util:XmlConfig Id="XmlSettings3" File="C:\temp\settings.xml" Name="IsReoderable" Value="true" ElementPath="//Categories/Category/InfoTypes/[EMAIL PROTECTED]'Roads'[\]]" On="install" Sequence="3"/> <util:XmlConfig Id="XmlSettings4" File="C:\temp\settings.xml" Action="create" Name="DisplayName" ElementPath="//Categories/Category/InfoTypes/[EMAIL PROTECTED]'Roads'[\]]" On="install" Sequence="4"/> <util:XmlConfig Id="XmlSettings5" File="C:\temp\settings.xml" Name="Name" Value="Väg" ElementPath="//Categories/Category/InfoTypes/InfoType/DisplayName[\[]not(@Name)[\]]" On="install" Sequence="5"/> </Component> <Feature Id="Complete" Level="1"> <ComponentRef Id="CustomAction.ModifyPacketXml"/> <ComponentRef Id="Dummy"/> </Feature> </Product> </Wix> Log: MSI (s) (14:80) [08:09:54:823]: Doing action: SchedXmlConfig MSI (s) (14:80) [08:09:54:823]: Note: 1: 2205 2: 3: ActionText Action start 08:09:54: SchedXmlConfig. MSI (s) (14:D0) [08:09:54:932]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI1335.tmp, Entrypoint: SchedXmlConfig MSI (s) (14:D4) [08:09:54:932]: Generating random cookie. MSI (s) (14:D4) [08:09:54:932]: Created Custom Action Server with PID 2572 (0xA0C). MSI (s) (14:8C) [08:09:54:964]: Running as a service. MSI (s) (14:8C) [08:09:54:964]: Hello, I'm your 32bit Impersonated custom action server. Action ended 08:09:55: SchedXmlConfig. Return value 1. MSI (s) (14:80) [08:09:55:667]: Doing action: RegisterUser MSI (s) (14:80) [08:09:55:667]: Note: 1: 2205 2: 3: ActionText -- View this message in context: http://n2.nabble.com/XmlConfig-%28again%29-tp1617441p1617441.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users