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

↘锁芯ラ 提交于 2019-12-11 08:26:20

问题


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?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/10794707/how-to-create-a-patch-in-wix-with-the-product-code-as-in-wxs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!