@John Ludlow: Ok I was following what I found in a wix email chain by Chad 
Peterson from 2011. The post is below as well as the url to the entire email 
chain.
Another option is to use the <RemoveFile/> element tied to the same
Component as your <File/> element. This will always clear out the
existing file prior to the current install writing the new one. Works
for rollback and uninstall.

<Component Id="Filetxt" DiskId="1" Guid="<someguid>">
         <RemoveFile Id="Remove_Filetxt" Name="File.txt" On="install" />
         <File Id="Filetxt" Name="File.txt" Source=".\data\File.txt" />
</Component>

The RemoveFiles action is always scheduled before the InstallFiles
action by default, so as long as you don't change that sequence in
InstallExecuteSequence then it should work fine. I consider this the
functional equivalent of the InstallShield "Always Overwrite" setting.

http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-wix-how-to-always-overwrite-a-file-td6904118.html

@John Cooper: I am thinking we had some troubles with multi instance and 
companion files in the past and have since removed them all from any of our 
installs, but I wasn't around for that conversation and nobody seems to 
remember why so I will give that a try thank you. Speaking of that though would 
that violate the Component rules for a minor upgrade?


Tyler Reid | Operations and Infrastructure | Accenture Software | P&C Insurance
1807 Jones Street | Bolivar, MO 65613| USA
Office: +cc.xxx.xxx.xxxx | Fax: 417.777.3792
E-Mail: tyler.w.r...@accenture.com<mailto:tyler.w.r...@accenture.com> | 
www.accenture.com/pcsoftware<http://www.accenture.com/pcsoftware>



________________________________
This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise confidential information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the e-mail by you is prohibited.

Where allowed by local law, electronic communications with Accenture and its 
affiliates, including e-mail and instant messaging (including content), may be 
scanned by our systems for the purposes of information security and assessment 
of internal compliance with Accenture policy.

______________________________________________________________________________________

www.accenture.com
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&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