After trying some approaches I came up with this one: <Component Id="FileToBeBackuped_xml" Guid="{EFF94FEE-B0AF-4fbf-B651-F923CECDC9B0}" DiskId="1"> <File Id="FileToBeBackuped.xml" LongName="FileToBeBackuped.xml" Name="FILETO_1.XML" Source="files\FileToBeBackuped.xml" KeyPath="yes" Vital="yes" /> </Component>
<Component Id="BackupTest" Guid="{C89048B8-8F3A-463c-B361-8AA2D496EA7A}" Transitive="yes"> <Condition>Installed</Condition> <CopyFile Id="FileToBeBackuped" FileId="FileToBeBackuped.xml" DestinationDirectory="Backup" /> </Component> So far this approach works fine if you reinstall the application. But it does not work on unistall. I don't understand why. Can anyone of you WiX gurus help me? What do I have to do to copy (backup) a file on unistall? Thanks! -- View this message in context: http://www.nabble.com/Copying-files-during-uninstallation-tp16095580p16537432.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users