I'm creating a major upgrade for a program using WiX. The last version of the program had a data file that is always found in C:\. I am allowing the user to either keep the file in the same location or select a different location. I am using a CopyFile element to move the file, which looks like this:
<DirectoryRef Id="TARGETDIR"> <Component Id="CMP_Data" Guid="{C35F8888-D868-4B18-991E-29E217EFE445}" KeyPath="yes"> <CopyFile Id="CopyData" DestinationDirectory="DATALOCATION" DestinationName="Remindex Local Data" SourceProperty="ORIGINALDATA" SourceName="Remindex Local Data" Delete="yes"/> </Component></DirectoryRef> DATALOCATION is a property which contains the path the user chooses in a PathEdit dialog. ORIGINALDATA is the original location of the files to be moved. They both also serve as ID's for Directories in my directory structure. The files should be moved from ORIGINALDATA to DATALOCATION. However, nothing is happening. I tried putting ORIGINALDATA in both the SourceDirectory and SourceProperty attributes. There are no errors showing up in the log file. I don't know if this helps, but here are the only three instances where CMP_Data shows up in the log: Component: CMP_Data; Installed: Absent; Request: Local; Action: Local _CMP_Data65; Installed: Null; Request: Local; Action: Local _CMP_Data66; Installed: Null; Request: Local; Action: Local Any suggestions would be greatly appreciated. ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users