Generally you should not remove files in a patch, but if you must: within the same component that owns the files remove the File elements and add RemoveFile elements for the same files. You cannot, however, remove the KeyPath file legally. You also cannot remove the component or you will break any parent features.
See http://blogs.msdn.com/heaths/archive/2006/01/23/516457.aspx (trackbacks to that post also have some recommended solutions, but our blog server is currently down for maintenance and should be back up later this weekend). On Sat, Apr 25, 2009 at 2:44 AM, luciana istoc <istoc_luci...@yahoo.com>wrote: > Hi, > > Does Windows Installer allow to remove all the files authored within a > component by applying a patch? > For example a patch (small update) would like to remove both files from the > next component: > <Component Id="Comp_1" > Guid="884C0AD3-4249-41d5-A722-60007DC9402B"> > <File Id="file_1.txt" Name="file_1.txt" KeyPath="yes"/> > <File Id="file_2.txt" Name="file_2.txt"/> > </Component> > ........................................................................ > <Feature Id="ProductFeature" Title="Test feature" Level="1"> > <ComponentRef Id="Comp_1" /> > <ComponentRef Id="Comp_2" /> > </Feature> > > > > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- Heath Stewart Deployment Technologies Team, Microsoft http://blogs.msdn.com/heaths ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users