Create a Self-Updating WinForms App with the Application Updater Block[3]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

<appSettings>
 
<add key="VERSION" value="1.0.0.0"
/>
</appSettings>

Finally, add the appUpdater section to your config file.  I've put brackets where you need to edit the values.  You can just copy the <RSAKeyValue> element from the PublicKey.xml file that you created in the previous step.

The <xmlFile> elements should point to your Virtual directory's  URL that you created in step #6.

<appUpdater>
  <UpdaterConfiguration
>
   <polling type="Seconds" value="120"
/>
  
<logListener logPath="C:\Program Files\YourApp\UpdaterLog.txt"
/>
   <downloader type="Microsoft.ApplicationBlocks.ApplicationUpdater.Downloaders.BITSDownloader"

assembly
="Microsoft.ApplicationBlocks.ApplicationUpdater,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null"/>
 
  <validator type="Microsoft.ApplicationBlocks.ApplicationUpdater.Validators.RSAValidator" assembly
="Microsoft.ApplicationBlocks.ApplicationUpdater,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null">
 
<key
>
  
<RSAKeyValue
>
  
<Modulus>[YOUR MODULUS KEY]</Modulus
>
 
<Exponent>[YOUR EXPONENET]</Exponent
>
 
</RSAKeyValue
>
 
</key
>
 
</validator> 
  <application name="[YOUR APP NAME]" useValidation
="true">
   
<client

本文关键:Create a Self-Updating WinForms App with the Application Updater Block
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top