That is essentially how I do it. I have a wixproj hacked to make my patch. In a PreBuildEvent, I have:
if exist $(ProjectDir)Target\Admin\some.msi del /q $(ProjectDir)Target\Admin\some.msi if exist $(ProjectDir)Target\Admin\some-install-dir rmdir /s/q $(ProjectDir)Target\Admin\some-install-dir if exist $(ProjectDir)Upgrade\Admin\some.msi del /q $(ProjectDir)Upgrade\Admin\some.msi if exist $(ProjectDir)Upgrade\Admin\some-install-dir rmdir /s/q $(ProjectDir)Upgrade\Admin\some-install-dir In a PostBuildEvent, I have: copy /y $(TargetDir)en-us\$(TargetFileName) $(TargetDir)en-us\$(TargetName).wixmsp echo Be Patient while Admin Installs run . . . msiexec.exe /quiet /a $(ProjectDir)Target\some.msi INSTALLLEVEL=1000 TARGETDIR=$(ProjectDir)Target\admin echo Target Admin Install Complete msiexec.exe /quiet /a $(ProjectDir)Upgrade\some.msi INSTALLLEVEL=1000 TARGETDIR=$(ProjectDir)Upgrade\admin echo Upgrade Admin Install Complete "$(WIX)bin\torch.exe" -p -ax binaries -xo $(ProjectDir)Target\admin\some.msi $(ProjectDir)Upgrade\admin\some.msi -out $(TargetDir)diff.wixmst "$(WIX)bin\pyro.exe" $(TargetDir)en-us\$(TargetName).wixmsp -t GA $(TargetDir)diff.wixmst -out $(TargetDir)$(TargetName).msp "some.msi" is the name of the MSI's I'm patching against. And "some-install-dir" is the root folder of the admin install. It would be nice if the available patch projects supported using torch and pyro, but this works. -- John M. Cooper -----Original Message----- From: john.burak [mailto:john.bu...@telvent.com] Sent: Thursday, November 03, 2011 4:17 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Patch with a simple file change I think I figured it out! Using the pyro/torch approach, patching can be done from MSIs without the original source dirs. Sorry to add so much noise to the list. For the benefit of future generations, here is what I did that differed from the http://wix.sourceforge.net/manual-wix3/wix_patching.htm tutorial : - Administrative installs of both MSIs (put them in "1.0\admin" and "1.1\admin") - Add the "-ax <direcotry>" flag to torch.exe. I pointed it to my patch directory: "-ax patch\" (I don't know why this is necessary, but I get errors without it) - Remove -xi flag, add -xo flag to torch. - Point torch to "1.0\admin\product.msi" (and "1.1\admin\product.msi") instead of the original "1.0\product.wixpdb" (and "1.1\product.wixpdb"). - John Burak john.burak wrote: > > I browsed the bug database and eventually found out " > https://sourceforge.net/tracker/index.php?func=detail&aid=2086871&grou > p_id=105970&atid=642714 pyro actually diffs the files on disk " and > not from inside the MSIs. In other words, the 'before' and 'after' > copy of files have to exist at the same time in different source > directories. > > That's annoying because then I have to keep old copies of files > (multiple gigs in large directory structure) in addition to the copies > of these files are already in the previous MSIs. I think I have to > make sure that the source paths for files point to the correct > directory structures (old vs. new). It would be nice if pyro just fetched > them from the MSIs. > > I think this will be a feature request. ;) > > - John > -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Patch-with-a-simple-file-change-tp6956231p6960657.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users