The design of your install (and probably the app that uses that file) is incorrect. A data file that needs preserving from one install through upgrades and so on needs to be in a Common Files or Application Data location. If the app uses the file in the installation folder, then the app's design is lacking. Apart from causing the issue you have here, in order to update data files in the install folder (which is usually the program files folder) the app needs admin privilege, restricting its use to administrator privilege. Most likely there is some lazy program code that references the unqualified file name, requiring it to be in the same location as the program.
In order to fix your problem (without fixing the design) your install needs to: 1. Preserve somewhere its install location so that the upgrade install can locate the old data file. 2. Use something like the CopyFile element to copy the file from that old location to the new install location. The source and destination will be properties, source that old location and destination the new install location. Plus the usual MajorUpgrade element changes etc for the upgrade. Phil Wilson On Thu, Sep 26, 2013 at 1:33 AM, nkshirsagar <nkshirsa...@gmail.com> wrote: > hi phil, > > I have a data file installed in version 1.0 in say path > c:\installedproduct. > I need to preserve this file upon upgrade because the application changes > this file and I need the changes for the upgraded application. > > If the version 2.0 is installed in say c:\anotherlocation , how would I > ensure that the c:\installedproduct data file is copied over? > > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/changes-to-support-upgrades-help-tp7589169p7589227.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > 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=60133471&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=60133471&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users