The following steps had been performed:
- Setup1.msi had been built in VS2005 + WiX 3.0 (.NET Framework 2.0).
- Version 1.0.0.0 had been installed by Setup1.msi.
- For the purpose of minor upgrade a Setup2.msi had been built (Setup2.msi differs from Setup1.msi ONLY in ProductVersion="1.0.1.0")
The following Patch.wxs had been prepared:
<Patch AllowRemoval="no" Classification="Update" Comments="..." Description="..." DisplayName="..." Manufacturer="..." TargetProductName="..."> <Media Id="1000" Cabinet="MyPatch.cab"> <PatchBaseline Id="MyPatch" /> </Media> <PatchFamily Id="MyPatchFamily" Version="1.0.1.0" ProductCode="...THE SAME AS IN Setup1.msi..." Supersede="yes"> <ComponentRef Id="CMP_Program_EXE" /> <ComponentRef Id="CMP_Desktop_Shortcut" /> <ComponentRef Id="CMP_ProgramMenu_Shortcut" /> </PatchFamily> </Patch>
Patch.msp had been created with help of candle, light, torch and pyro.exe.
The following command had been invoked:
msiexec /p Patch.msp REINSTALL=ALL REINSTALLMODE=vomus
As a result, Program.exe was updated and new shortcuts "v. 1.0.1" were created. However, old Shortcut "v. 1.0.0" remained both on "DesktopFolder" and on "ProgramMenuFolder".
How can I make the Patch remove old Shortcut?
Thanks in advance.