Copy if not exist in WiX

后端 未结 2 1854
逝去的感伤
逝去的感伤 2020-12-11 03:49

I have a config file, myapp.exe.config, that I want to install only if it does not already exist. That is, I don\'t want to overwrite any existing config file. How can this

2条回答
  •  悲哀的现实
    2020-12-11 04:01

    You want to use NeverOverwrite and Permanent on the component...

    
        
    
    

    I use this on my config.json files that contain really long nasty connection strings to a web service. It should never be blanked out by any user action and linger behind after an uninstall.

    http://wixtoolset.org/documentation/manual/v3/xsd/wix/component.html

提交回复
热议问题