I look at version lying as a necessary evil to subvert Windows Installer's 
insufficient costing story.  There are ways of reducing the repair risk to 
zero.

-----Original Message-----
From: Phil Wilson [mailto:phildgwil...@gmail.com]
Sent: 29 October 2013 05:24 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Force replace files when applying patch

Version lying is a bad thing! The basic issue is that the file on disk 
(with no version) will never match the version you've put in the file 
table. This means the product is always broken and is at risk of repeatedly 
trying to repair itself.

Regarding "let the user try to merge changes" - I wasn't suggesting the 
user merge the changes into the config file, I was suggesting that the 
install does it.

Nobody's mentioned file hashing - that has an effect on the replacement 
rules, but it's not clear if you're using it or not.

Phil Wilson

On Tue, Oct 29, 2013 at 12:27 AM, Blair Murri <os...@live.com> wrote:

> What did the log say happened?
>
>
>
>
>
>
> Blair
>
>
>
>
>
> From: Christoffel le Roux
> Sent: Monday, October 28, 2013 6:08 AM
> To: General discussion for Windows Installer XML toolset.
>
>
>
>
>
> Hi, When try to patch non-versioned files, the files does not get
> replaced when the file on the disk was changed by the user, I know
> this is by design, but I need to  patch some configuration files that
> the user was allowed to update, lets say it's a web.config file, when
> some additional content was added to the web.config file from the
> build,  I need to remove the file the user updated and replace it with
> the file in the delta, is there any way that I can force the files to get 
reinstalled.
>
> I did add a removefile element to the files like so:
>
>
>   <Component Id="comp_12D9BA535F5443E0B23AF72ED10A3385"
> Guid="BC0D1156-F478-4051-BFAF-8FF5AD1EFC1B">
>
>           <File Id="file_EF33C85A5F3F430DAA97E17D618E4CD2" KeyPath="yes"
> Source="$(var.BinariesBuildOutputPath)\web.config " />
>
>                     <RemoveFile
> Id="remove_comp_12D9BA535F5443E0B23AF72ED10A3385" Name=" web.config "
> On="install" />
>
>            </Component>
>
> But after the patch was applied the the web site had significant less
> files than what is was supposed to have.
>
> Please can anyone make any suggestions
>
> Thanks in advanced.
>
> This information is intended only for the person or entity to which it
> is addressed and may contain private, confidential, proprietary and/or
> privileged material and may be subject to confidentiality agreements.
> Any review, retransmission, dissemination, or any 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 all storage media.
> FlowCentric is neither liable for proper, complete transmission of the
> information contained in this communication, any delay in its receipt
> or that the mail is virus-free.
>
> ----------------------------------------------------------------------
> -------- October Webinars: Code for Performance Free Intel webinars
> can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the
> most from the latest Intel processors and coprocessors. See abstracts
> and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.c
> lktrk _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ----------------------------------------------------------------------
> -------- Android is increasing in popularity, but the open development
> platform that developers love is also attractive to malware creators.
> Download this white paper to learn more about secure code signing
> practices that can help keep Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.c
> lktrk _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
----------------------------------------------------------------------------
--
Android is increasing in popularity, but the open development platform that 
developers love is also attractive to malware creators. Download this white 
paper to learn more about secure code signing practices that can help keep 
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk


_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
This information is intended only for the person or entity to which it is 
addressed and may contain private, confidential, proprietary and/or 
privileged material and may be subject to confidentiality agreements. Any 
review, retransmission, dissemination, or any 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 all storage media. 
FlowCentric is neither liable for proper, complete transmission of the 
information contained in this communication, any delay in its receipt or 
that the mail is virus-free.

----------------------------------------------------------------------------
--
Android is increasing in popularity, but the open development platform 
that
developers love is also attractive to malware creators. Download this 
white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk


_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to