I tried installing Windows Installer version 4.5 on XP machine but that didn't fix the problem.
What fixed it is quite scary because of the hacky method that was used. In short, copying Vista version 6.0 of MSPATCHA.DLL (from System32 folder) to XP, which had version 5.1 of it, made patching succeed as it did on Vista machine. The file that previously crashed the patching process before was now correctly patched and as the result had a new version. However, MSPATCHA.DLL is a protected DLL and I had to disable XP file system protection in order to install newer Vista version 6.0. This means changing Registry value while kernel debugger is attached via null modem cable. Clearly, this is no way that I can fix the issue on customer's XP machines. I feel that Microsoft should provide a safe way of updating buggy MSPATCHA.DLL on XP machines. -----Original Message----- From: Tony Juricic Sent: Wednesday, September 02, 2009 7:37 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Patch failure on XP that doesn't happen on Vista I am using PatchWiz. Also, I am afraid I don't understand if I should use IgnoreRange, if I could do it with PatchWiz. On XP the patching system thinks that file has been already patched which is simply wrong, even if the difference is probably only in version resource part of the file. It also aborts the patching process and rolls back all the changes. I can't patch the entire system anymore because of this error. I would rather see the same behavior as in Vista where the same file gets patched and I see it got a new version when looking at its properties in Explorer. Thus I am thinking either play with installer versions, of which XP one appears to be buggy, or take your suggestion to include the entire file in the patch, rather than using differences. -----Original Message----- From: Blair [mailto:os...@live.com] Sent: Wednesday, September 02, 2009 1:13 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Patch failure on XP that doesn't happen on Vista TargetFile\IgnoreRange element(s) are "intended" for exactly your scenario (you tell the system one or more sections of the binary that "don't matter" for it to be able to assert that the file is the same before applying the patch it). If you are using Pyro instead of PatchWiz, the IgnoreRange element goes under the File element in building your "Updated" image (it seems to be missing from the schema/help doc). -----Original Message----- From: Tony Juricic [mailto:tjuri...@tradestation.com] Sent: Tuesday, September 01, 2009 6:08 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Patch failure on XP that doesn't happen on Vista Hi Blair, Actually, the files are not bit-for-bit the same. The error message is probably too generic and misleading in this case. In the case of this particular file there are no changes in code and the only difference is in version resource which has 4-th version number different from the RTM version. IMO, that explains why PatchSize=6113,TargetSize=100198. This is nothing unusual considering the build system that I am using, which increments 4-th version number with each new build. Quite a few other files have the same differences - just version resource - and they don't exhibit this problem. I build MSP on Server 2003 system with MSI version 3.01.4000.3959 and I create only Release build patches. It seems that patch application MSI version is more important than the build system MSI version since patch applies without a glitch on Vista with version V 4.5.6002.18005 MSI, while it fails on XP with MSI components version 3.01. I guess I would have to enforce both build and application MSI versions to be the same (meaning I'll have to install 4.5 MSI on XP machines before staring install and patching process), but at this time it is just a guess. Thanks, Tony -----Original Message----- From: Blair [mailto:os...@live.com] Sent: Tuesday, September 01, 2009 6:20 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Patch failure on XP that doesn't happen on Vista I assumed you verified that the files are bit-for-bit the same before attempting to apply the patch. Do you build your MSP on a Vista/Server 2008 system? We saw this one time and it happened only with Release (not Debug) for just one file, but didn't happen when building on XP/32-bit (I never investigated building on either 64-bit XP or Server 2003). Our products were not allowed on Server OSs but we did our official builds on them. It seems that the PatchAPI binaries (described here: http://msdn.microsoft.com/en-us/library/bb417345.aspx) are somehow different and the Patch Apply routines are somehow sometimes different between platforms. For a workaround we had to mark that one file as "whole file" instead of delta. It didn't happen every build, but it did happen for about two months around one of our major releases. -----Original Message----- From: Tony Juricic [mailto:tjuri...@tradestation.com] Sent: Tuesday, September 01, 2009 2:56 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Patch failure on XP that doesn't happen on Vista Applying the patch on one XP system produces the following error log for one file (edited here to shorten the path to MYFILE.EXE): MSI (s) (74:4C) [17:23:03:041]: Executing op: CacheBaselineFile(Baseline=0,FileKey=MYFILE.EXE,FilePath=C:\Program Files\..\ MYFILE.EXE,,Existing=0) MSI (s) (74:4C) [17:23:03:103]: Executing op: PatchApply(PatchName= MYFILE.EXE,TargetName=C:\Program Files\..\ MYFILE.EXE,PatchSize=6113,TargetSize=1001984,PerTick=0,,FileAttributes=512,P atchAttributes=0,CheckCRC=0) MSI (s) (74:4C) [17:23:03:135]: Re-applying security from existing file. MSI (s) (74:4C) [17:23:03:197]: Note: 1: 2318 2: C:\Config.Msi\PF4D1.tmp MSI (s) (74:4C) [17:23:03:244]: Note: 1: 2302 2: 0 MSI (s) (74:4C) [17:23:03:338]: Note: 1: 1328 2: C:\Program Files\... MYFILE.EXE 3: -1072807676 MSI (s) (74:4C) [17:23:03:400]: Note: 1: 2205 2: 3: Error MSI (s) (74:4C) [17:23:03:463]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1328 MSI (s) (74:4C) [17:23:03:494]: Note: 1: 2205 2: 3: Error MSI (s) (74:4C) [17:23:03:541]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 MSI (s) (74:4C) [17:23:03:619]: Product: MYProd Error 1328. Error applying patch to file C:\Program Files\..\ MYFILE.EXE . 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 However, applying the same patch on the same RTM on Vista computer works without any trouble. What more can I do to attempt to diagnose the source of the problem? TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users