Hello WiX community,

 

What is the difference between FeatureRef and ComponentRef elements
located under PatchFamily?

I'm building a patch to upgrade 1.0.0 to 1.0.1 and the difference is the
only one file being changed. 

If I reference a component under PatchFamily element (the file belongs
to this component), everything works fine and the file gets updated
after patching.

 

<!-- WORKS FINE -->

 <PatchFamily Id="UpdatePatchFamily" Version="1.0.0" Supersede="yes">

     <ComponentRef Id="Web.config"/>

 </PatchFamily>

 

But if I reference a feature where the component is included to, the
file doesn't get updated after patching.

 

  <!-- DOESN'T WORK -->

  <PatchFamily Id="UpdatePatchFamily" Version="1.0.0" Supersede="yes">

       <FeatureRef Id="ProductFeature" />

  </PatchFamily>

 

Is this expected? If so, could you please explain why?

WiX version is 3.0.4805.0.

Thanks.

 

-- Yan

 

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to