You have a few options. If your making a .NET app you can use the AutomaticUpdaterBackend class (see: AutomaticUpdater tutorial for Windows Services and Console Apps).
If you're not making a .NET app, then you have a couple of choices:
Tell me if this helps.