Reputation: 11
I have an existing large WiX install that has already been released with the product code mentioned as *. I need to create a small install for just a couple of files that have changed. As the product code is mentioned as *, WiX doesn't allow creating an msp
file as the product code differs. What can I do to fix this issue?
Upvotes: 1
Views: 639
Reputation: 21886
You can't use major upgrades to create minor upgrade patches. You need to change Product/@Id to match the product code of your target product before building the newer version.
Upvotes: 1
Reputation: 32240
If you're using Purely WiX approach to making patches, you can author a Validate element with attribute ProductId='no'
. Like this:
<Media Id="..." Cabinet="my.cab">
<PatchBaseline Id="...">
<Validate ProductId="no" />
</PatchBaseline>
</Media>
You might want to explore other options of the Validate
element.
Upvotes: 1