Letting the user modify "installed" files will cause significant headaches. Best solution, until you understand why, just don't do it.
Can you install a default configuration file and then copy that to the "user" configuration if it doesn't exist? That way Windows Installer doesn't 'know' about the configuration file (except for the default one which shouldn't be modified) and so won't try to replace it on repair. Then just use RemoveFile to delete the config when your application is uninstalled. On Fri, Mar 26, 2010 at 8:08 PM, Viv coco <vcotirl...@hotmail.com> wrote: > > Hi, > > > > I read the WiX Tutorial from http://www.tramontana.co.hu/wix/ and there are > some things I didn't understand or couldn't find and as I read that this is > the best place for questions, I'll write them here, but for an easier > followup I will write each question into a separat email. I appreciate your > answers/help. > > When I install my application, along with the binaries, in the same directory > a conf file is placed that the user can change as he needs. > I would like for this conf file to not be deleted (or overwritten) when we do > a major upgrade, but only when we remove the application completely from the > computer, b/c otherwise the user needs to do the right settings in the conf > file every time after an upgrade. > In other words, for this conf file, I would like to have the following > behaviour: when the product is upgraded (major upgrade which means first > uninstall old version meaning deleting all installed files and then install a > new version) the conf file should NOT be deleted or overwritten. But if the > user uninstalls our product, for instance from add/remove program, then b/c I > want to clean everything I would like that conf file to be deleted. How could > I have this behaviour? > > > > TIA, > Viv > > > _________________________________________________________________ > Hotmail: Trusted email with powerful SPAM protection. > https://signup.live.com/signup.aspx?id=60969 > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users