Hi,
Is it possible to create a new (text) file during the install? In my case I want to create an xml file (configuration file like) which contains a few elements with values from some WiX defines, e.g. if the following could be expressed: <util:CreateTextFile Name="setup.xml"> <?xml version='1.0'?> <ConfigurationSetup> <CompanyName>$(var.CompanyName)</CompanyName> </ConfigurationSetup> </util:CreateTextFile> or alternatively: <util:CreateTextFile Name="setup.xml"/> <util:XmlFile Id="CreateSetupXml1" File="setup.xml" Action="createElement" ElementPath="//" Name="ConfigurationSetup"/> <util:XmlFile Id="CreateSetupXml2" File="setup.xml" Action="createElement" ElementPath="ConfigurationSetup" Name="CompanyName" Value="$(var.CompanyName)"/> The only workaround I know of, is to have a "dummy" source file (illustrated below) but I kind of dislike having such "unnecessary" files. <File Source="setup.xml"/> <util:XmlFile Id="CreateSetupXml1" File="setup.xml" Action="createElement" ElementPath="//" Name="ConfigurationSetup"/> <util:XmlFile Id="CreateSetupXml2" File="setup.xml" Action="createElement" ElementPath="ConfigurationSetup" Name="CompanyName" Value="$(var.CompanyName)"/> ... Any comments, suggestions? Thanks in advance for all replies, /Michael PS. Isn't it correct that the WiX IniFile element will create a new .ini fle if not present, so that you can create new old-style .ini files? ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users