I have created an installer using WIX toolset. Now I want to copy a file to the user's local system after installation. I have tried all possible ways with CopyFile
element but couldn't complete the problem.
I have tried using CopyFile
Element but couldn't copy the file.
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="SAFTRUS_Application" />
<Directory Id="MyProgramDir" Name="SAFTRUS_Application">
<Directory Id="CopiedFiles" Name="Copied Files" />
</Directory>
</Directory>
</Directory>
<Fragment>
<DirectoryRef Id="MyProgramDir">
<Component Id="sAFtrUS" Guid="E8A58B7B-F031-4548-9BDD-
7A6796C8460D">
<File Id="FILE_InstallMeTXT" Source="ReadMe.rtf" KeyPath="yes">
<CopyFile Id="Copy_InstallMeTXT"
DestinationDirectory="CopiedFiles"
DestinationName="ReadMe1.rtf" />
</File>
</Component>
</DirectoryRef>
The file should be copied from installer to end user's system.
The File name is ReadMe.rtf
, this file is included in my setup project.
I want to copy this file to the user's local system where the application is, installed.
So if anyone has a solution, please help me.