[wix-users] Unable to Uninstall Patch

Ven H venh.123 at gmail.com
Fri Jun 1 03:58:45 PDT 2018


I am building a Patch using the Patch Creation Properties. I have a
Patch.wxs in which there is a PatchMetadata element with
AllowRemoval="yes". Even then the Patch doesn't give me the option to
uninstall in the Installed Updates. Can any one please help?

FYI, please find the Patch.wxs mark up below.

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <PatchCreation WholeFilesOnly="yes" CleanWorkingFolder="yes"
OutputPath="patch.pcp" Id="224C316C-5894-4771-BABF-21A3AC1F75FF">
    <PatchInformation Description="!(loc.PatchDescription)"
Comments="!(loc.PatchDescription)" Manufacturer="$(var.Manufacturer)"
Languages="!(loc.LANG)" ShortNames="no" Compressed="yes"/>
    <PatchMetadata Description="!(loc.PatchDescription)"
ManufacturerName="$(var.Manufacturer)" MoreInfoURL="URL"
*AllowRemoval="yes"* Classification="Update"
DisplayName="!(loc.PatchDisplayName)"
TargetProductName="$(var.ProductName)"/>
    <Family MediaSrcProp="Sample" SequenceStart="5000" DiskId="5000"
Name="Sample">
      <UpgradeImage SourceFile="Path\1.0.1\admin\New.msi"
Id="SampleUpgrade">
        <TargetImage Order="2" IgnoreMissingFiles="no"
SourceFile="Path\1.0.0\admin\old.msi" Id="SampleTarget"/>
      </UpgradeImage>
    </Family>
    <PatchSequence Supersede="yes" PatchFamily="SamplePatchFamily"
Sequence="1.0.0.0"/>
  </PatchCreation>
</Wix>


More information about the wix-users mailing list