How to run heat.exe and register a dll in wix

后端 未结 1 770
耶瑟儿~
耶瑟儿~ 2020-12-05 16:44

I need to register a dll in regAsm and now i was using

 

        
1条回答
  •  感情败类
    2020-12-05 17:21

    Heat is used to scrape directories or files and generate .wxs files to include in your installer. If you wish to generate registry information from a .net dll with a COM interface you can use a command like the following:

    Heat.exe file C:\\com.dll -dr INSTALLFOLDER -srd -gg -sfrag -suid -out C:\
    

    Here is some sample output from a command like the above:

    
        
            
        
        
        
        
        
        
        
        
        
        
        
    
    

    Basically the heat command generates a wxs file with the above component in it. Then all you need to do is to include this component or component group in your main installer. It will then create the registry entries instead of running regasm. The uninstall would then remove these registry entries.

    Here is how you might include it in your main installer:

    
        
    
    

    0 讨论(0)
提交回复
热议问题