.net - WiX - harvest non project assemblies in setup output -
i'm using wix 3.5 in vs 2010, , i've added of project assemblies references in setup project (.wixproj), , set harvest property true binaries, content, , satellites included in .msi file.
however, how go adding third party assemblies (.dlls) .msi output? need add each explicitly product.wxs file, or there nicer way? ideally, i'd add them file references in setup project, doesn't seem option?
yes need add them manually wxs file or can use pre-build step uses heat harvest these file (assuming these file reside in seperate directory).
heat part of wix , can harvest entire directory using dir switch. depending on commandline arguments, produce seperate wxs file containing single componentgroup. reference componentgroup product.wxs.
for example on how use heat harvest release directory:
heat dir "../../bin/release" -gg -cg cg.applicationbinaries -dr installdir -scom -sfrag -sreg -srd -var var.buildoutputdir -o applicationbinaries.wxs
this produce file applicationbinaries.wxs:
<wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <fragment> <directoryref id="installdir"> <component id="cmp53f90d1335dd67504ec2b9e1e8620dd3" guid="{ca2df1b5-7b20-4596-84a4-925b4f9ba6ec}"> <file id="filc65f9cb88694fca79fcb3cadb9481921" keypath="yes" source="$(var.buildoutputdir)\asynctcpsocket.dll" /> </component> .... </directoryref> </fragment> <fragment> <componentgroup id="cg.applicationbinaries"> <componentref id="cmp53f90d1335dd67504ec2b9e1e8620dd3" /> ... </componentgroup> </fragment> </wix>
Comments
Post a Comment