Hi, You probably could get around this by doing a file search for the web.config and then using the resultant property as a condition on whether to install the template web.config.
Alternatively you may find it much easier to just create a new website in IIS and install the web.config to that, this is what our installers do. Dealing with what already is on the machine is a bit of a nightmare as you are trying to update a shared resource and your settings may cause other applications problems. Of course this may not be possible for you depending on what your requirements are. Dave -----Original Message----- From: Erich Nurr [mailto:erich.n...@gmx.de] Sent: 22 April 2010 14:16 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] How to create or modify a web.config file in IIS root directory? i changed one line, i removed the <file ...> element and wrote <createfolder/> (without it i couldnt compile) existing web.config files will be correctly modified and by uninstall the only the new modified conent will be deleted :) BUT if no web.config files already exists, the setup crashs with (cant open web.config file) :( how to make a if, else or something like this? if(web.config not exists) <file...> else <createfolder/> any ideas? -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-cre ate-or-modify-a-web-config-file-in-IIS-root-directory-tp4942208p4942661. html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users </pre> <BR style="font-size:4px;"> <a href = "http://www.sdl.com"><img src="http://www.sdl.com/images/email logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a> <BR> <font face="arial" size="2" "><a href = "http://www.sdl.com" style="color:005740; font-weight: bold">www.sdl.com</a> <BR> <BR> <font face="arial" size="1" color="#736F6E"> <b>SDL PLC confidential, all rights reserved.</b> If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.<BR> SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.<BR> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. </font> ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users