Manage configuration files with WiX

后端 未结 2 847
孤城傲影
孤城傲影 2020-12-30 15:20

I have an application with several files that contain configuration parameters and other data that changes as the user uses the application. These files can change with new

2条回答
  •  Happy的楠姐
    2020-12-30 15:48

    I think there is no "clean" way to do this, because a msi project must be able to uninstall itself completely by design. I think the best way to solve this, is by using a custom action which executes a batch file and put your configfile update logic in that batch file. The custom action looks like this (only relevant parts):

    
        
            
        
    
    
    
    
    
        NOT Installed
    
    

提交回复
热议问题