user1423069
user1423069

Reputation: 11

How to Create a Patch in WiX with the product code as * in wxs

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

Answers (2)

Bob Arnson
Bob Arnson

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

Yan Sklyarenko
Yan Sklyarenko

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

Related Questions