Yes, you can have a CopyFile in a different component than the file it is copying.
And, you can/should use RemoveFile/@On="uninstall" to remove files you create via custom actions. -----Original Message----- From: Sean Farrow [mailto:sean.far...@seanfarrow.co.uk] Sent: Thursday, November 25, 2010 3:18 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] removing a file that exists on uninstall but not uninstall andCopyFile element query Hi: I have the following installation structure: The main feature installs a series of components (files) in to a hidden directory. Other features need to have components that hold copyfile elements that copy files from the hidden directory to a directory determined by a condition. Is this possible with the CopyFile element, i.e can I copy file across component boundaries. Secondly, files are created by custom actions during installation. How would I go about removing these files on uninstallation? Any help appreciated. Cheers Sean ---------------------------------------------------------------------------- -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users