Can ClickOnce deployed application setup be compressed?

前端 未结 3 1253
囚心锁ツ
囚心锁ツ 2020-12-18 04:10

I publish Windows Forms application using ClickOnce. The installation is quite big considering the overall size of this app. It\'s something over 15 MB. If I compress locall

3条回答
  •  伪装坚强ぢ
    2020-12-18 04:42

    ClickOnce does not have any built-in compression support. But you can use HTTP-compression at the web-server level.

    Follow these steps to enable compression under IIS7:

    %windir%\system32\inetsrv\config\applicationHost.config (see my comments, other lines are default)

    
        
        
            
            
            
            
        
        
            
            
            
            
            
            
            
            
            
            
            
            
        
    
    

    Still not working?? Add this to the same file (by default IIS 7.0 does not compress files unless they are "frequently requested")

    
    

提交回复
热议问题