Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wix installer - how to add files with msi in output folder

I'm generating a msi and need to add a few files that are .txt from my solution into the bin folder, along with the MSI.

For example, adding a read-me.txt always that a new MSI is generated. This file must not be within the package.

I'd not like to use Build Events (DOS commands) if I have an option.

like image 488
pointnetdeveloper Avatar asked Dec 10 '25 05:12

pointnetdeveloper


1 Answers

In your wixproj, try that:

<Project ...>
    <Target Name="AfterBuild">
        <Copy SourceFiles="SourceFile.txt" DestinationFiles="DestFileName.txt" />
    </Target>
</Project>
like image 199
Saxophonist Avatar answered Dec 13 '25 23:12

Saxophonist



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!