Hello my fellow WiXers! It's time for another update to my Paraffin tool which makes managing your fragments easier. With 3.5 I've implemented the trick outline by Vagmi Mudumbai (http://geekswithblogs.net/Vagmi.Mudumbai/archive/2006/06/11/81426.aspx) of allowing minor upgrades (AKA patches) to remove files by setting the transitive bit on the component and adding a conditional element that evaluates to false.
<Component Id="comp_F5B392C05B5249C2AB34810BE4A6163F" Guid="FD9D7BF4-550A-47E2-85A3-634D77F609FB" Transitive="yes"> <File Id="file_81DD236ED61B4BBEB445FAB9E9C2DAB2" Checksum="yes" KeyPath="yes" Source=".\Temp\a.exe" /> <Condition>1 = 0</Condition> </Component> But what about those zero length files you'll need? I've got you covered. When you specify the -PatchUpdate switch, you can add the new -PatchCreateFiles switch and Paraffin will create the zero byte files for you. Don't worry, when you rerun Paraffin again with -PatchUpdate, if the zero byte file is there, Paraffin checks if the Transitive attribute is set and makes sure to keep everything straight. While you could keep those zero byte files in your version control system, which seems a little odd to me since they are, well, no longer needed. Because Paraffin knows which files have been deleted with the Transitive attribute on the Component element you can recreate the zero byte files at any time by using -PatchUpdate file.wxs as the command line. The idea is that you'll run this as part of your build so you never have to worry about those zero byte files. More about what's new: http://www.wintellect.com/CS/blogs/jrobbins/archive/2010/08/31/paraffin-3-5-now-with-better-minor-upgrade-support.aspx Download the bits and source: http://www.wintellect.com/CS/files/folders/18310/download.aspx As always, let me know if there are any features you'd like to see in Paraffin (or bugs you find!). If you haven't heard of Paraffin before, read this http://www.wintellect.com/CS/blogs/jrobbins/archive/2010/08/31/zen-of-paraffin.aspx. John Wintellect http://www.wintellect.com +1-877-968-5528 ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users