Click here to Skip to main content
Licence 
First Posted 20 Jun 2005
Views 32,149
Bookmarked 35 times

How to add a downloader

By | 20 Jun 2005 | Article
The documentation provided with the Updater Application Block 2.0 indicated that it was easy to extend – including adding a new Downloader. Here is a step-by-step guide to what I did to extend the application block to contain an FTP Downloader.

Introduction

The documentation provided with the Updater Application Block 2.0 indicated that it was easy to extend – including adding a new Downloader. I found the documentation for actually accomplishing this task somewhat lacking. Here is a step-by-step guide to what I did to extend the application block to contain an FTP Downloader.

I extended it at the level of the application block itself because I wanted all the integrated tools to work seamlessly with my extension. Provided are downloads for the entire application block with my extension and the difference in the file set.

  1. Downloaders:
    1. Create a custom Downloader which implements the IDisposable, IDownloader, and IConfigurationProvider interfaces.

      FTPDownloader (FTPDownloader.cs)

    2. Create a custom DownloadProviderData which inherits from DownloadProviderData.

      FTPDownloaderProviderData (FTPDownloaderProviderData.cs)

  2. Updater.Configuration.Design:
    1. Create a custom DownloaderNode which inherits from DownloaderNode.

      FTPDownloaderNode (FTPDownloaderNode.cs)

    2. Add an entry for the FTPDownloaderNode in method RegisterNodeMaps in ApplicationUpdaterDesignManager.cs.
    3. Add an entry for FTPDownloaderProviderData in method RegisterXmlIncludeTypes in ApplicationUpdaterDesignManager.cs.

    4. Add an entry for FTPDownloaderNode in method OnAddMenuItems in DownloaderCollectionNode.cs.
  3. Updater:
    1. Added FTPDownloaderNode XML node in ApplicationUpdaterText.resx.

    2. Added FTPDownloaderNode to MessageKey in Resources.cs.

  4. Configuration file:
    1. Edited ServerManifest.xml to contain a named Downloader.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

GManMoneyGrizzo



United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalbuild error Pinmemberwhitecat016:30 8 Aug '05  
QuestionProject? Pinmemberfwsouthern16:33 20 Jun '05  
AnswerRe: Project? PinmemberGManMoneyGrizzo2:38 21 Jun '05  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 20 Jun 2005
Article Copyright 2005 by GManMoneyGrizzo
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid