How can I set an icon for an asscociated file using WiX?

前端 未结 4 2074
离开以前
离开以前 2021-01-12 14:24

My application install file is being generated using WiX. In the WiX configuration I am associating a file type that works with the application. How can I associate an icon

4条回答
  •  佛祖请我去吃肉
    2021-01-12 14:49

    I'd recommend following my stack overflow post located here for the simplest and most elegant way of embedding icons into a resource without the need for a c++ project in a managed .NET application.

    Next, here is the proper way to set this via wix:

      
    
        
          
          
          
            
            
          
        
    
        
          
    
          
            
          
    
          
            
              
              
                
              
            
          
    
        
      
    

    This sample registers the default icon for a specific file extension (.stackoverflow) that is located in an assembly from step 1. It also shows how to create Windows Explorer associated right click commands as well as adds a menu item to the Windows Explorer New sub menu.

    Thanks

    -Blake Niemyjski

提交回复
热议问题