Some time ago I've published a few blog posts about creating update packages with Sitecore Courier during build. This blog post is about installing them automatically during website deployment.
Source code used by Update Installation Wizard can be easily found using Reflector, but it's always easier to use ready and tested solution.