Easy solution would be to have base-config.xml & extras-config.xml installed by their features using those filenames. In your base Feature add a Component with only a CopyFile element which copies base-config.xml to config.xml & Condition the component so it is skipped if your extras Feature is selected for install. Do the same in the extra Feature for extras-config.xml (could leave the condition off here, not strictly necessary). User installs base feature, gets base-config.xml copied to config.xml. User installs base and extras features, gets both base-config.xml & extras-config.xml but only extras-config.xml is copied to config.xml
That should also support repairing, patching & upgrading gracefully too. 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: Dave Combs [mailto:dave.co...@kaazing.com] Sent: 13 June 2011 03:33 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] looking for some help on a file-copying task duringinstall I was hoping somebody could help with my confusion on a <CopyFile> issue. I have a WiX configuration to install a product with 2 features, call them 'base' and 'extras'. 'base' is required, and 'extras' is optional. Both 'base' and 'extras' have a config file (called 'base-config.xml' and 'extras-config.xml'). At some point during installation, one or the other of the two files (depending on what features have been chosen) needs to be copied into another directory, with the file name 'config.xml'. My problem is that I can see that <CopyFile> can be applied inside a <File> component to copy that component (but then I have 2 guys trying to go to the same place), or inside its own <Component> (but isn't that only for files that are already on the destination machine?) Can anybody either point out where I'm going wrong or suggest a solution? Thanks! Dave ------------------------------------------------------------------------ ------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users