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

前端 未结 5 819
傲寒
傲寒 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:33

    The Component @NeverOverwrite="yes" attribute might be the solution to this problem.

    From the WiX help documentation:

    If this attribute is set to 'yes', the installer does not install or reinstall the component if a key path file or a key path registry entry for the component already exists. The application does register itself as a client of the component. Use this flag only for components that are being registered by the Registry table. Do not use this flag for components registered by the AppId, Class, Extension, ProgId, MIME, and Verb tables.

    Component Element Documentation

提交回复
热议问题