Hey Phil, not all files are xml some are MVC html views, we would rather 
replace all the files than let the user try to merge changes back into their 
dev or live environments.  I saw someone else asked a similar question 
yesterday on overwriting all files on repair which is basically what happens in 
my case as well

[WiX-users] repair does not repair file that was changed
http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg60329.html

" You can do something called Version lying.  Basically you author your WXS
to say the text file has a version number and now it'll always reinstall.
There are some down sides though.

I will investigate on this to see if it's possible.

Thanks for the help so far :)
Christoffel le Roux

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

It's safer strategy in these cases to update the existing file, and not destroy 
data that the user or the system may have entered. It should be just an Xml 
update, right?

Phil Wilson


On Mon, Oct 28, 2013 at 5:47 AM, Christoffel le Roux < 
christoffe...@flowcentric.com> wrote:

> 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
>
------------------------------------------------------------------------------
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.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

Reply via email to