See if this helps:

http://blogs.msdn.com/b/heaths/archive/2009/04/12/patch-applicability.aspx

Phil Wilson


On Thu, Aug 22, 2013 at 3:47 AM, Swaroop Kare
<[email protected]>wrote:

> Hi,
>
>
>
>    I am able to make Patch1 based on
> http://wix.tramontana.co.hu/tutorial/upgrades-and-modularization/patchwo
> rk but I am falling back when making subsequent workable patches. Can
> any one tell me if I am missing any step while I am doing Patch2.
>
>
>
> Step1: Add new components into wix and update source folder with
> modified binaries
>
>
>
> Step2: Update Product.wxs [I had the version "4.5.0.36" for base install
> and ="4.5.1.36" for Patch1 install. I have left Product id same for Base
> and Patch1 install]
>
>
>
> <Product Id="{D3CE06DA-4B3F-4A85-841D-49F301125BC4}" Name="Demo
> Application"
>
>                       Language="1033"
>
>                       Version="4.5.2.36"
>
>                       Manufacturer="XYZ"
>
>
> UpgradeCode="{9F488C10-B558-40B1-8F6A-DDAB38646717}">
>
>
>
>
>
> Step3:Create patch creation Patch2.wxs file  as below
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
>
>             <Patch
>
>                         Description="Minor Update Patch"
>
>                         DisplayName="Patch Version: $(var.Version)"
>
>                         AllowRemoval="yes"
>
>                         Classification="Update"
>
>                         MoreInfoURL="http://www.ifdspercana.com/";
>
>                         Manufacturer="XYZ"
>
>                         >
>
>                         <!--AllowRemoval attribute allow the patch to be
> removed after it's been applied without having to uninstall the entire
> product-->
>
>                         <!-- Id must be higher than any sequence number
> in the baseline msi's Media/File table. Cabinet must match the original
> cabinet file name.PatchFamily Id to be renamed. -->
>
>                         <! -- Media id was given as 5000 for Patch1-- >
>
>
>                         <Media Id="5050" Cabinet="Upgrade.cab">
>
>                                     <PatchBaseline Id="Upgrade">
>
>                                                 <Validate
> ProductVersionOperator="Equal" ProductVersion="Update"
> ProductId="no"></Validate>
>
>                                     </PatchBaseline>
>
>                         </Media>
>
>                         <!-- Supersede: Set this value to 'yes' to
> indicate that this patch will supersede all previous patches in this
> patch family. The default value is 'no'. -->
>
>                         <PatchFamily Id="TestPatch" Supersede="no"
> Version="$(var.Version)"
> ProductCode="{D3CE06DA-4B3F-4A85-841D-49F301125BC4}">
>
>                                     <ComponentRef
> Id="cmpE6DA825FD4121CD3B4E59C258F590407" />
>
>                         </PatchFamily>
>
>             </Patch>
>
> </Wix>
>
>
>
>
>
> Step4: Create and run below batch file
>
>
>
> @SET VERSION=4.5.2.37
>
> ECHO Patch you are you building now is %VERSION%
>
> PAUSE
>
> mkdir "%CURRENTDIR%\TestPatch01"
>
> mkdir "%CURRENTDIR%\TestPatch02"
>
> mkdir "%CURRENTDIR%\bin"
>
>
>
> REM ** Set Variables **
>
> set CURRENTDIR=D:\WIX\Test Patches
>
> REM Ensure that path of Wix Directory is set in Environment System
> variable
>
> set WIXDIR=C:\Program Files (x86)\WiX Toolset v3.7\bin
>
>
>
> REM Extract msi files created for Patch1 and Patch2
>
> msiexec /a TestPatch01.msi /l*v TestPatch01.log /passive
> TARGETDIR="%CURRENTDIR%\TestPatch01"
>
> msiexec /a TestPatch02.msi /l*v TestPatch02.log /passive
> TARGETDIR="%CURRENTDIR%\TestPatch02"
>
>
>
> REM  Generate an XML output patch file (.wixmsp)
>
> "%WIXDIR%\candle" -dVersion="%VERSION%" Config\TestPatch02.wxs
>
> "%WIXDIR%\light" TestPatch02.wixobj -out TestPatch02.wixmsp
>
>
>
> REM  Perform a difference to generate a transform (.wixmst or .mst) for
> XML outputs
>
> "%WIXDIR%\torch" -p -ax bin -xo
> "%CURRENTDIR%\TestPatch01\TestPatch01.msi"
> "%CURRENTDIR%\TestPatch02\TestPatch02.msi" -out
> TestPatch02Differences.wixmst
>
>
>
> REM  Take an XML output patch file (.wixmsp) and one or more XML
> transform files (.wixmst) and produces an .msp file.
>
> "%WIXDIR%\pyro" TestPatch02.wixmsp -t Upgrade
> TestPatch02Differences.wixmst -out TestPatch02\TestPatch02.msp
>
>
>
> TestPatch02.msp  is being created and when I try to install them on
> Base.msi and TestPatch01.msp it complains "Patch does not apply to
> current product". Do anyone has suggestions?
>
>
>
> Thanks
>
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to which it is addressed and
> may contain information which is privileged, confidential or prohibited
> from disclosure or unauthorised use. You are hereby notified that any use,
> any form of reproduction,
> dissemination, copying, disclosure, modification, distribution and/or
> publication of this e-mail message or its attachments other than by it's
> intended recipient is strictly prohibited by the sender. If you have
> received this email in error, please notify the system manager by email at
> [email protected]
> Please note that any views or opinions presented in this email are solely
> those of the author and do not necessarily represent those of the company.
> Finally, this email has been scanned for the presence of viruses. The
> recipient should also check this email and any attachments for the presence
> of viruses. The company accepts no liability for any damage caused by any
> virus transmitted by this email
>
> ______________________________________________________________________________________
>
> IFDS Percana Group Limited, no. 307152, is registered in Ireland at 16
> Joyce Way, Park West Business Park, Dublin 12, Ireland.
> Directors: Eugene Larmon, Patrick Concannon, William Slattery, Paul O'Neil
> (UK), Simon Hudson-Lund (UK) and Stephen Parkinson (UK)
> IFDS Percana International Managed Services Limited, no. 368022, is
> regulated by the Central Bank of Ireland. Registered in Ireland at 16 Joyce
> Way, Park West Business Park, Dublin 12, Ireland.
> IFDS Percana International Managed Services Limited is a wholly owned
> subsidiary of IFDS Percana Group Limited and provides support services to
> the life and pensions industry.
> Directors: Eugene Larmon, Patrick Concannon, Stephen Parkinson (UK) and
> Paul O'Neil (UK).
> www.ifdspercana.com
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to