How to create a directory in wix?

前端 未结 3 1126
清歌不尽
清歌不尽 2020-12-14 15:53

My requirement is to create a directory in programdata/test/example. How can I do that in wix?

3条回答
  •  眼角桃花
    2020-12-14 16:22

    Define the folder like this:

    
        
            
                
            
        
    
    

    The important part here is the CommonAppDataFolder Id, which is known by Windows installer. You can find the full list of known system folders in the Windows Installer Property Reference.

    If you install any files to that folder, it will be created implicitly. If not, you can force it to be created by installing a component like this:

    
        
    
    

提交回复
热议问题