I created a sample application (v1.0.0.0) with two patches (v1.0.0.1 and
v1.0.0.2). I'm able to install V1.0.0.0 and patch it with v1.0.0.2 and then
patch it again with v1.0.0.1. The files from the v1.0.0.1 patch replace files
that were installed with the v1.0.0.2 patch. Is this correct and if not, what
might I be doing wrong?
http://msdn2.microsoft.com/en-us/library/aa370526(VS.85).aspx
Contents of BUILD.BAT
candle.exe -dVersion=1.0.0.0 WiX\1.0.0.0\product.wxs
light.exe product.wixobj -out 1.0.0.0\product.msi
candle.exe -dVersion=1.0.0.1 WiX\1.0.0.0\product.wxs
light.exe product.wixobj -out 1.0.0.1\product.msi
candle.exe -dVersion=1.0.0.2 WiX\1.0.0.0\product.wxs
light.exe product.wixobj -out 1.0.0.2\product.msi
candle.exe WiX\1.0.0.1\patch.wxs
torch.exe -p -xi 1.0.0.0\product.wixpdb 1.0.0.1\product.wixpdb -out
patch\1.0.0.1\diff.wixmst
light.exe patch.wixobj -out patch\1.0.0.1\patch.wixmsp
pyro.exe patch\1.0.0.1\patch.wixmsp -out patch\1.0.0.1\patch.msp -t RTM
patch\1.0.0.1\diff.wixmst
torch.exe -p -xi 1.0.0.1\product.wixpdb 1.0.0.2\product.wixpdb -out
patch\1.0.0.2\diff.wixmst
light.exe patch.wixobj -out patch\1.0.0.2\patch.wixmsp
pyro.exe patch\1.0.0.2\patch.wixmsp -out patch\1.0.0.2\patch.msp -t RTM
patch\1.0.0.2\diff.wixmst
Contents of PRODUCT.WXS
<?xml version="1.0" encoding="UTF-8"?>
<!--
candle.exe -dVersion=1.0.0.0 WiX\product.wxs
light.exe product.wixobj -out 1.0.0.0\product.msi
candle.exe -dVersion=1.0.0.1 WiX\product.wxs
light.exe product.wixobj -out 1.0.0.1\product.msi
torch.exe -p -xi 1.0.0.0\product.wixpdb 1.0.0.1\product.wixpdb -out
patch\diff.wixmst
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="E61FE86C-6983-4e57-BC11-E9BBEDA0B749"
Name="CT Folder Compare"
Language="1033"
Version="1.0.0.0"
Manufacturer="Coretech"
UpgradeCode="E61FE86C-6983-4e57-BC11-E9BBEDA0B749">
<Package Description="Installs version 1.0 of CT Folder Compare."
Comments="Installs version 1.0 of CT Folder Compare."
InstallerVersion="200"
Compressed="yes" />
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
<FeatureRef Id="CoreProductFeature"/>
</Product>
<Fragment>
<Feature Id="CoreProductFeature" Title="Core Product Feature" Level="1">
<ComponentRef Id="CoreComponents" />
</Feature>
</Fragment>
<Fragment>
<DirectoryRef Id="CoreProductFolder">
<Component Id="CoreComponents"
Guid="{F6DAF8B9-D4D4-462a-9293-85E2BF2FB57D}" DiskId="1">
<File Id="CtFolderCompareEngine.dll"
Name="CtFolderCompareEngine.dll"
Source=".\$(var.Version)\CtFolderCompareEngine.dll" />
<File Id="CtFolderCompareGui.exe" Name="CtFolderCompareGui.exe"
Source=".\$(var.Version)\CtFolderCompareGui.exe" />
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="CoreCompanyFolder" Name="Coretech">
<Directory Id="CoreProductFolder" Name="CT Folder Compare">
</Directory>
</Directory>
</Directory>
</Directory>
</Fragment>
</Wix>
Contents of PATCH.WXS (the v1.0.0.2 patch.wxs is identical except for the
PatchFamily Version)
<?xml version="1.0" encoding="UTF-8"?>
<!--
candle.exe WiX\patch.wxs
light.exe patch.wixobj -out patch\patch.wixmsp
pyro.exe patch\patch.wixmsp -out patch\patch.msp -t RTM patch\diff.wixmst
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Patch
AllowRemoval="yes"
Manufacturer="Coretech"
MoreInfoURL="http://ca0v.terapad.com/"
DisplayName="CT Folder Compare"
Description="CT Folder Compare Small Update Patch"
Classification="Update"
>
<Media Id="5000" Cabinet="RTM.cab">
<PatchBaseline Id="RTM"/>
</Media>
<PatchFamilyRef Id="CorePatchFamily"/>
</Patch>
<Fragment>
<PatchFamily Id='CorePatchFamily' Version='1.0.0.1' Supersede='yes'>
<ComponentRef Id="CoreComponents"/>
</PatchFamily>
</Fragment>
</Wix>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users