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

Reply via email to