How do you exclude specific files from a WiX patch?
I'm using WiX's admin-image-style patch creation, but the resulting patch contains extra files that I don't want to include. My understanding of WiX patching is that it is "inclusive" by default -- that is, that you choose what to include, rather than exclude. I found this comment by Peter Marcu indicating that admin patching is the way to go if you want to exclude specific files开发者_StackOverflow中文版. I have a couple of questions:
- He mentions that when you do an admin install each component is put into its own fragment -- how does this work?
- He also says you have to use patch families (note the plural) -- what is the accepted practice for this? Do I need a ComponentRef for every component I'm including, given that they are all in individual fragments, as in (1)?
The default behavior is to include all differences. If you don't want all, then you need to specify them individually. When you're using admin image patching, WiX creates fragments as granular as possible, so yes, you need individual ComponentRefs, BinaryRefs, etc.
精彩评论