Welcome to MSDN Blogs Sign in | Join | Help

WiX: Building a Patch using the new Patch Building System - Part 2

I dont have much time today to write but I wanted to take a chance to answer a few questions that I've been asked a lot recently.

What is Pyro? 

Pyro is the new tool in the WiX toolset that will pull together your patch authoring and your product transforms in order to build you an msp.

What is the new system and what is the old? 

It is important to distinguish the new patch building system from the previous one provided by WiX. There has been some confusion and I want to try and clear it up.  

The Previous Way:
The PatchCreation element has been supported in WiX for a while to help people build patches. It essentially helps users build a pcp file which is then used as input to the PatchWiz tools. The PatchCreation element is not used in the new patch building system.

The New Way:
The Patch Element is a newly added element that lets you describe the contents of your patch. It contains information about where the files your patch contains should be stored as well as summary information that describes your patch to your end user. It also supplies a mechanism to filter out specific changes to be included in your patch. When this element is passed to candle to be compiled and the resulting wixobj's are passed to light to link, the result is a WixMsp. This is an xml representation of the patch database (msp).

What Next?

The next thing I'd like to do is to provide a simple example of how to build a patch using Pyro.exe. I plan on getting this started in the next few days. Keep bugging me if I dont to remind me to do it and feel free to ask me more questions as this new functionality isn't all that well documented yet.

Published Saturday, June 16, 2007 9:08 PM by Petermarcu

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Link to details about how to use new patch creation features in WiX v3.0

Peter Marcu posted a couple of items on his blog recently that I wanted to link to here so hopefully

Tuesday, July 17, 2007 3:19 PM by Aaron Stebner's WebLog

# Link to details about how to use new patch creation features in WiX v3.0

Peter Marcu posted a couple of items on his blog recently that I wanted to link to here so hopefully

Tuesday, July 17, 2007 4:20 PM by Noticias externas

# re: WiX: Building a Patch using the new Patch Building System - Part 2

Interesting...

Thursday, November 08, 2007 8:21 AM by Dimitrios

# re: WiX: Building a Patch using the new Patch Building System - Part 2

interesting

Thursday, November 08, 2007 1:07 PM by Constantinos

# re: WiX: Building a Patch using the new Patch Building System - Part 2

A really well explained article and has given me a nice idea for a project!

Monday, October 20, 2008 5:09 PM by it help

# doubt on patch creatin

hi

sorry for changing title.

i struck with one problem , i need your help.

i have created patches  

Product.msi baseversion

Product1.msi new files + Product.msi's updates

Product2.msi some new files  + + Product1.msi's updates

than i created patch Patch1.msp and Patch2.msp

so my first patch update Product.msi to Product1.msi

and Patch2 updates Ptroduct1.msi to Product2.msi

this thing works fine.

but for administrative installation

i need to merge Patch1.msp and Patch2.msp to Product.msi

so i do

msiexec /a "Product.msi" /p "Patch1.msp"

and than

msiexec /a "Product.msi" /p "Patch2.msp"

but while doing second patch merge

i get error saying "Error 1328. Error applying patch to file D:\Config.Msi\PT4F85.tmp.  It has probably been updated by other means, and can no longer be modified by this patch.  For more information contact your patch vendor.  System Error: -1072807676"

i investigate problem comparing all installer.

and i find that while merging second time one file is gets added as well as it is trying to Patch\update the same file.

that's why i got error.

i want to ask is it because i didn't changed  file version ? ( in next updated version Product2.msi )

pls help me.

Monday, August 10, 2009 3:02 AM by teligaurav

# re: WiX: Building a Patch using the new Patch Building System - Part 2

You should be able to create your admin image by passing all the patches on the same command line by setting the PATCH property like this PATCH=Patch1.msp;Patch2.msp.

If your patches have the same version and don't use patch families to superceded/hide a previous patch, then yes, two files with the same version that are different will cause problems.

Tuesday, August 11, 2009 12:19 PM by Petermarcu

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker