Search code examples
installationwixwindows-installerconfiguration-files

WiX overwrites config files during setup. How can I avoid this?


I'm using WiX to create a windows installer. Unfortunately my installer overwrites a config file on every update. What I really want is, that the installer only creates the file if it is not found.

Thanks and regards, forki


Solution

  • I sure someone will come up with a proper answer, but as a backup:

    You could have the installer create a default configuration file, and then have your application copy the default file to the normal configuration file, if the normal configuration file is not present. This also provides an easy way to reset the application to factory default (just delete the configuration file).