WIX HeatDirectory Task - Setting the preprocessorVariable

后端 未结 6 1245
难免孤独
难免孤独 2020-12-24 15:32

I\'m trying to set the preprocessor variable in wix and i\'m unable to find an example of this or explanation on how to do it anywhere on the internet, i\'m hoping somebody

6条回答
  •  一向
    一向 (楼主)
    2020-12-24 16:09

    I use Wix v3.10.

    No need to explicitly call HeatDirectory MSBuild Task. ItemGroup with special name "HarvestDirectory" can be prepared, and later the "HarvestDirectory" target will process it. *.wsx file is created in the IntermediateOutputPath and is included in Compile list (processed by Candle).

    
    ...
      $(MSBuildProjectDirectory)\Final\
      FinalFolder=$(MyFinalFolder)
    
    
    ...
    
    
    
      
      
        
          INSTALLFOLDER
          true
          true
          true
          FilesComponentGroup
          var.FinalFolder
        
      
    
    

    The wxs file:

    
    
        
            
                
                    
                
    

提交回复
热议问题