Indeed, the solution is to modify the wixproj file for that project. Wix uses MSBuild, a very brief description of the WIX target for MSBuild can be found here. To edit the wixproj file within Visual Studio, open the context menu of the Wix project and unload it. Open the context menu of the unloaded project and select edit projectname.wixproj
.
To Copy files after the project has been compiled, a new Target
element with the Name
attribute set to AfterBuild
has to be added to the Project
element of the wixproj file. To copy files, specify one Copy
element for each file you want to copy to your output folder. Place the Copy
elements within your Target
element. Read about the Copy
syntax here. A lot more can be done with MSBuild, so have a look at the reference.