You should specify the -v- option. The documentation isn't very clear, but -v- tells it to use the original source, which is where it needs to get the file from anyway. I just tried REINSTALLMODE values of vamus and vdmus and both replaced the file with the original from the MSI, and the log entries say:
MSI (s) (8C:94) [08:30:01:567]: Executing op: FileCopy(SourceName=TEST.TXT|test.txt,SourceCabKey=_2B80071304CE4FFC84B55067AD7D3886,DestName=test.txt,Attributes=512,FileSize=34,PerTick=65536,,VerifyMedia=1,,,,,CheckCRC=0,,,InstallMode=130023424,,,,,,,) MSI (s) (8C:94) [08:30:01:567]: File: C:\Program Files (x86)\Microsoft\Setup1\test.txt; Overwrite; Won't patch; REINSTALLMODE specifies all files to be overwritten MSI (s) (8C:94) [08:30:01:567]: Source for file '_2B80071304CE4FFC84B55067AD7D3886' is compressed Phil Wilson On Tue, Dec 10, 2013 at 6:31 AM, John Cooper <jocoo...@jackhenry.com> wrote: > Options that work: 1) give the text file a versioned binary > CompanionFile; 2) play games with the timestamp per other discussions on > this list. > > I currently use the CompanionFile technique in production, but I am > intrigued by manipulating the timestamps and I have a task for myself to > implement a table-driven "touch" custom action to put that into practice. > > -- > John Merryweather Cooper > Build & Install Engineer - ESA > Jack Henry & Associates, Inc.® > Shawnee Mission, KS 66227 > Office: 913-341-3434 x791011 > jocoo...@jackhenry.com > www.jackhenry.com > > > > -----Original Message----- > From: Andrew Makhorin [mailto:m...@gnu.org] > Sent: Tuesday, December 10, 2013 8:15 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] repair does not repair file that was changed > > I tried the following options in wix xml: > > <Property Id="REINSTALLMODE" Value="amus" /> - doesn't work > > <File ... DefaultVersion= ...> (file version lying) - doesn't work > > <RemoveFile ... On="both' ...> - doesn't work > > In all cases the installer (Windows 7, IA-64 machine) does not overwrite > text files that have been installed and then changed with a text editor. > Moreover, even if I remove these files by hand and uninstall the product, > after installing the changed version of these files appear rather than the > original one. > > Is there any reliable way to always overwrite non-versioned files on > installing/repairing the product? Thanks. > > > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > NOTICE: This electronic mail message and any files transmitted with it are > intended > exclusively for the individual or entity to which it is addressed. The > message, > together with any attachment, may contain confidential and/or privileged > information. > Any unauthorized review, use, printing, saving, copying, disclosure or > distribution > is strictly prohibited. If you have received this message in error, please > immediately advise the sender by reply email and delete all copies. > > > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users