I did some more testing. The installer is not touching the config files in general. Only the connection string. Seems, that one of my components gets executed every time. I can't see why. Any ideas?
<Component Id="ConfigWindowsAuth" Guid="MYGUID" KeyPath="yes" > <util:XmlFile Id="AppConfigSetConnStrWin" Action="setValue" Permanent="yes" File="[#MY.config]" ElementPath="/configuration/appSettings/add[\[]@key='ConnectionString'[\ ]]" Name="value" Value="Data Source=[DB_SERVER];Initial Catalog=[DB_NAME];Integrated Security=SSPI;" /> <Condition>DB_WINDOWS_AUTH=1 AND NOT Installed AND NOT PATCH</Condition> Seems that it always does an ExecXmlFile: ... MSI (s) (6C:10) [09:49:56:602]: Executing op: CacheRTMFile(SourceFilePath=C:\Program Files (x86)\ MyCompany \ MY.config,FileKey= MY.config.AAAA_BBBBB_CCCCC,,ProductCode={MYGUID},ProductVersion=5.1.1,At tributes=512,,,,CopierFlags=0,,,,,,) ... MSI (s) (6C!D4) [09:49:57:644]: Creating MSIHANDLE (62) of type 790531 for thread 6100 ExecXmlFile: Configuring Xml File: C:\Program Files (x86)\MyCompany\MY.config MSI (s) (6C!D4) [09:49:57:644]: Closing MSIHANDLE (62) of type 790531 for thread 6100 ... Any ideas on this? And what is this CacheRTMFile? -----Original Message----- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: Thursday, 12 May 2011 11:10 p.m. To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Ignoring config files with patch Are the config files being included in the patch? Patchwiz log should tell you what exactly what it is choosing to include. If so it's overwriting them with what it thinks are newer files which is what I suspect is the case as Windows Installer won't overwrite updated files with older ones in my experience. Palbinder Sandher Software Deployment Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Christoph Vollmer [mailto:christoph.voll...@emendo.co.nz] Sent: 12 May 2011 00:27 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Ignoring config files with patch Hi, I'm creating a patch following http://wix.sourceforge.net/manual-wix3/patch_building.htm. It seems, that the config files get changed back. I tried PatchIgnore on the config file in the installer. But from the documentation is seems that it just helps to prevent changes from one installer to the other going into the patch. And does this mean, I have to recreate the installers? Thanks, Christoph ------------------------------------------------------------------------ ------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------ ------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users