Hi Michael, you could use two Custom Actions to do so - the first (scheduled before installation) copies the file, the second (after InstallFinalize) copies it back and deletes the temporary file.
Or you could add use a separate component for that file and add an install condition to the component, something like "If Not Exists". If WiX / MSI don't provide the necessary statements, code a CA that tests the file and fills a MSI property. Then check for that property. As you should leave the file handling completely to MSI, I would prefer the second way. 2011/10/31 Michael Tissington <michael_tissing...@ciqual.com>: > I have a text file that has been modified in a folder under ProgramData. > When doing an upgrade I need to keep the file > > If the file exists I'd like to take a copy of it to a temp location, > Perform the upgrade and then copy the file back. > > > How can I do this? > > > ------------------------------------------------------------------------------ > Get your Android app more play: Bring it to the BlackBerry PlayBook > in minutes. BlackBerry App World™ now supports Android™ Apps > for the BlackBerry® PlayBook™. Discover just how easy and simple > it is! http://p.sf.net/sfu/android-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ RSA® Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users