You can make a patch to update both A -> C and B -> C but I don't think you can 
selectively make it also update A to B.

C is the what you specific in the UpgradeImage section of your Patch Family 
(the 'destination').
A & B should be specified as TargetImages (the 'source').
e.g.

    <Family Name="myproduct" MediaSrcProp="mymedia" SequenceStart="10000">
      <UpgradeImage Id="productC" SourceFile="productC\productC.msi">
        <TargetImage Id="productB" Order="2" IgnoreMissingFiles="no" 
SourceFile="productB\productB.msi" />
        <TargetImage Id="productA" Order="1" IgnoreMissingFiles="no" 
SourceFile="productA\productA.msi" />
      </UpgradeImage>
    </Family>


If you still have issues, paste the contents of the .wxs which has your 
PatchCreation element.

Palbinder Sandher 
Software Platform Engineer 
T:   +44 (0)141 945 8500
F:   +44 (0)141 945 8501
http://www.iesve.com 

Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 
0SP
Email Disclaimer 


-----Original Message-----
From: Ravishankar [mailto:ravishankar.krishnasw...@idsfortune.com] 
Sent: 12 August 2014 09:18
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Single patch for 2 MSI

Hi All,
I have previously released 2 versions of an application (lets call them Version 
A and Version B) and are about to release a third version (Version C). I would 
like to release a patch that will patch version A to C or version B to C but 
cannot find any documentation to cover it.

I can quite easily create a patch to update A to B, a second patch B to C, and 
a third patch A to C but I would like to combine the three patches into one. I 
can imagine my number of patches skyrocketing during future version releases.

I know it is possible because I have used a demo version of MSIStudio to create 
the PCP and the MSP automatically. The MSP works great (A to B, or B to C) but 
I really want to create my own MSP from the PCP (even from the one MSIStudio 
creates would be fine). I can see that the PCP has two TargetImages (A.msi and 
B.msi) and that the UpgradedImages table has the third image (C.msi) but then I 
run msimsp.exe:


msimsp -s Patch.pcp -p Patch.msp -l log.txt -d


, I get the following error (and the MSP is not created): - See more at: 
http://www.itninja.com/question/combining-two-patches-into-one#sthash.Z3gW0yJM.dpuf

Please share your expertise.

Thanks and Regards
Ravi Shankar
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

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

Reply via email to