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

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

本文简介:

  1. Launch the ManifestUtility program again. 
  2. Choose the 1.0.0.1 directory from the “Update files folder“ chooser. 
  3. Enter the URL of the update location. 
  4. Enter version 1.0.0.1
  5. Open your PrivateKey.xml file created earlier.
  6. Choose the validator class “Microsoft.ApplicationBlocks.ApplicationUpdater.Validators.RSAValidator”
  7. Click CreateManifest, and save the ServerManifest.xml file to your virtual server directory.

That's it!  Pheeew!  Run your AppStart.exe from your C:\Program Files\YourApp\ directory.  Your app should launch, and you should now be prompted that “A new version is available” when you launch your application.  The new app should be downloaded into your C:\Program Files\YourApp\1.0.0.1 directory, and the app should re-start itself.  If you have problems, be sure to check the log files that are created during the process.  They can be very helpful in tracking down bugs.

-Brendan

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

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

go top