XmlConfig, just like XmlFile, depend on the XML file already existing when the action runs. The syntax between the two actions is slightly different, and the capabilities are slightly different, but I'm not sure what you are referring to when you say "do I need to delete the file first or can I use a create action directly".
If the element you want to modify already exists, you can simply change the element by "creating" its value (or the value of its attribute, depending on what you are trying to do). I'm assuming that you were asking about the perceived need to delete the value/element/attribute first (instead of file?). -----Original Message----- From: Chris Jokinen [mailto:chr...@directron.us] Sent: Thursday, October 15, 2009 7:58 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] failed install, error is Failed to open XML file Ok, I found this old posting on the same issue I am having. http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg22390.html It would look like I need to switch from XmlFile to XmlConfig to do what I need to do. I see the example that Brian posted was <util:XmlConfig Id="AddElementText" File="[SOMEEXISTINGFILE]" Action="create" ElementPath="/someElement" Node="value" Value="NEW TEXT" On="install" Sequence="1" /> My question is do I need to delete the file first or can I use a create action directly? -----Original Message----- From: Chris Jokinen [mailto:chr...@directron.us] Sent: Wednesday, October 14, 2009 5:15 PM To: 'General discussion for Windows Installer XML toolset.' Subject: [WiX-users] failed install, error is Failed to open XML file This extract is from my msi log file. MSI (s) (6C:D8) [16:49:36:281]: Executing op: CustomActionSchedule(Action=ExecXmlFile,ActionType=3073,Source=BinaryData,Target=ExecXmlFile,CustomActionData=1€0€\RollCall.exe.config€3€0€/configuration/applicationSettings/RollCall.Properties.Settings/setti...@key='project']/value/€value€test) MSI (s) (6C:B8) [16:49:36:281]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSIF10.tmp, Entrypoint: ExecXmlFile ExecXmlFile: Found Wow64 API, but unable to link to Wow64DisableWow64FsRedirection function in kernel32.dll ExecXmlFile: Found Wow64 API, but unable to link to Wow64RevertWow64FsRedirection function in kernel32.dll ExecXmlFile: Error 0x8007006e: failed to load XML file: \RollCall.exe.config MSI (s) (6C!28) [16:49:36:312]: Product: setup -- Error 25531. Failed to open XML file \RollCall.exe.config, system error: -2147024786 It looks to have an issue with Wow64…any guidance on this error? Thanks ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users