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

前端 未结 5 825
傲寒
傲寒 2020-12-14 01:54

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 th

5条回答
  •  再見小時候
    2020-12-14 02:26

    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).

提交回复
热议问题