Wix major upgrade

前端 未结 3 1032
天涯浪人
天涯浪人 2021-02-04 10:47

How do I use WIX to prevent overwriting a config file during a \'Major Upgrade\'?

I want the file to be installed on the initial install, removed on uninstall, and left

3条回答
  •  伪装坚强ぢ
    2021-02-04 11:33

    Do you ever want it overwritten? If not in cases like this I assign the config files to their own components and mark them as Never Overwrite. This way upgrades will not overwrite the file but uninstalls will remove it.

    e.g.

    
    

提交回复
热议问题