MSI calculates the hash of data files and, if hash is different, patch will 
update the older file.
However, that is only in the case that file creation and modification time&date 
are identical.
When time & date are not identical, MSI assumes that file was touched by the 
user and won't patch it.

Thus I believe that modified file is in the patch, it is just that MSI doesn't 
apply the patch because of time & date.
Verbose log can also confirm this - it is good to do a verbose log of patching 
process whenever reporting issues in any case.
 

-----Original Message-----
From: Oleksandr Y. Nechyporenko [mailto:alexnc69...@gmail.com] 
Sent: Friday, September 17, 2010 2:32 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] How WiX resolve that file was changed when creates patch

Hello,

 

I've noticed one strange thing. When text file (for example html file) was
changed but it's size wasn't changed it will not be included to patch.

For example, if I change 2 symbols to other 2 symbols, WiX don't detect that
file changed and not include it to patch.

 

Are there way to force binary files compare?

 

I use patch syntax like

 

<Patch Classification="Update"

                MinorUpdateTargetRTM ="yes"

                AllowRemoval="no"

                Manufacturer="$(var.Manufacturer)"

                TargetProductName="$(var.Manufacturer) $(var.ProductName)
$(var.ProductVersion)"

                DisplayName="$(var.ProductName) patch up to
$(var.ProductVersion)."

                Description="$(var.ProductName) patch up to
$(var.ProductVersion).">

 

                <Media Id="5000" Cabinet="patch.cab">

                                <PatchBaseline
Id="$(var.ProductAbbreviation)" />

                </Media>

 

                <PatchFamilyRef Id="PatchFamily_$(var.ProductAbbreviation)"
/>

</Patch>

 

<Fragment>

                <PatchFamily Id="PatchFamily_$(var.ProductAbbreviation)"
Version="$(var.ProductVersion)" Supersede="yes">

                                <ComponentRef Id="Component.Name" />

 

......

 

----------------------------------------------------------

Best Regards,

Oleksandr Y. Nechyporenko

 



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.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to