WIX How not to reinstall the function during the repair?

On WIX, I would like the feature to be installed and removed normally, but not affected during the repair.

I could not find a condition that would allow me to do this. My attempts were unsuccessful: the function is reinstalled during the repair (which I do not need) or is not deleted.

This is an example that I have tried in the past:

<Feature Id="aFeature" Title="A Features" Level="1">
  <ComponentRef Id="aComponent" />
  <Condition Level="0">
    <![CDATA[WixUI_InstallMode="Repair"]]>
  </Condition>
</Feature>

What is the correct condition to remove but not reinstall during repair? Or what did I do wrong?

+4
source share
2 answers

This works for me:

<Feature Id="aFeature" Title="A Features" Level="1">
  <ComponentRef Id="aComponent" />
  <Condition Level="0">
     <![CDATA[REINSTALL<>""]]>
  </Condition>
</Feature>

Thus, during recovery, the function is ignored and not affected, but is usually deleted

+3
source

, , - , Windows , , , , . , . , , , . , . , , , , , ?

+1

All Articles