Updater Application Block 2.0 - .NET 2.0 使用心得

1,在Updater   Application   Blocek2.0中有7个项目文件需要添加:   
  
  Microsoft.ApplicationBlocks.Updater.dll
  Microsoft.ApplicationBlocks.Updater.Downloaders.dll
以上两个需在项目中引用
  Microsoft.ApplicationBlocks.Updater.ActivationProcessors.dll
  Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll
  Microsoft.Practices.EnterpriseLibrary.Common.dll
  Microsoft.Practices.EnterpriseLibrary.Logging.dll
  Microsoft.Practices.ObjectBuilder.dll
以上七个文件都需复制到项目输出目录内

2,App.config文件应添加到项目中,系统会自动在项目输出目录内生成和其内容一样的,"应用程序名.exe.config",文件

附本人的App.config

 
  


  

 
 
  
       authenticationScheme="BG_AUTH_SCHEME_NTLM"
    targetServerType="BG_AUTH_TARGET_SERVER" />
  

 

 
     
                   saltEnabled="true" type="Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.HashAlgorithmProvider, Microsoft.Practices.EnterpriseLibrary.Security.Cryptography, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"
                name="MD5CryptoServiceProvider" />
  

 

applicationId为唯一标识,如和manifests.xml的不一样,则程序不会进行更新
manifestUri为远程manifests.xml文件的地址

3,程序是否更新取决于manifests.xml文件的manifestID是否更改,如更改则更新

附本人的manifests.xml文件
  xmlns="urn:schemas-microsoft-com:PAG:updater-application-block:v2:manifest">
 a description for this manifest
 
  
  .
 

 
  
 

 
  
   
   
  

 

updater   Application   Blocek本身下载速度较慢,有网友已写出HTTP下载程式,速度比较快.

你可能感兴趣的:(Updater Application Block 2.0 - .NET 2.0 使用心得)